how to use Foreign key in L2E or EF when needs insert?
- by 5YrsLaterDBA
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?