how to use Foreign key in L2E or EF when needs insert?

Posted by 5YrsLaterDBA on Stack Overflow See other posts from Stack Overflow or by 5YrsLaterDBA
Published on 2010-04-13T20:01:49Z Indexed on 2010/04/13 20:02 UTC
Read the original article Hit count: 162

Filed under:
|
|

I know during the retrieve, I can use Include() to load related Entities (http://stackoverflow.com/questions/2632323/how-to-use-foreign-key-in-l2e-or-ef). but when I want to save or insert data, how to handle those reference Entities?

© Stack Overflow or respective owner

Related posts about c#

Related posts about LINQ