code_junkie

Do you think it's advantageous to switch to Entity Framework?

Nov 12th, 2011
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. foo.Foreign_TypeReference.EntityKey =
  2. new EntityKey("DataContextName.Foreign_Type", "Foreign_Type_Id", ForeignTypeId);
  3.  
  4. foo.Foreign_Type_Id = ForeignTypeId;
Add Comment
Please, Sign In to add comment