More on Foreign Keys in EF
Posted by: Julia Lerman Blog - Dont Be Iffy...,
on 30 Aug 2008 |
View original | Bookmarked: 0 time(s)
For some background, check out a previous post called "Where's
my Foreign Key?"
I came across a scenario where I have a foreign key for an entity in the form of an
ID. And the scenario is in a web page. I need to turn that ID into an EntityReference,
but I don't think that it's fair to ask the UI developer to know enough about EF that
they should have to know how to create an EntityKey, much less know about EntityReferences.
Rather than force them to pass the ID up to the business layer, I finally...