Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

Entities Associations: Point in Time vs. Current Associations

AddThis Social Bookmark Button
Having just finished giving three courses (2 on RavenDB and 1 on NHibernate), you might want to say that I have a lot of data stuff on my mind. Teaching is always a pleasure to me, and one of the major reasons for that is that I get to actually learn a lot whenever I teach. In this case, in all three courses, we run into an issue with modeling associations. For the sake of the example, let us talk about employees and paychecks. You can see the model below: Do you note the blue lines? Those represent
Employee reference, but while they are both referencing the same employee, they are actually quite different associations. The Manager association is a Current Association. It is just a pointer to the managing employee. What does this means? Let us say that the manager of a certain employee changed her name. In that scenario, when we look at the current employee record, we should see the updated employee manager name. In this case, we are always interested in the current status. On the other hand when looking at the paycheck PaidTo reference to an employee, we have something all together different....(Read whole news on source site)

Home : Blog List : Ayende @ Rahien : Entities Associations: Point in Time vs. Current Associations