Entity Framework - Related Objects question

I noticed that if I have a Pk / FK association the FK ID is removed from the object in the constructor. How do I join query operators?

I am mainly looking for good Linq to Entity video tutorials (sorry I'm an audio / visual learner)

0


source to share


1 answer


Say you have a "overview" element and it is associated with a "product", which you would do something like this:

review.productsReference.Value = db.products.First(p => p.product_id == 2);

      



Link installation. A value equal to the object itself.

http://naspinski.net/post/Getting-started-with-Linq-To-Entities.aspx

+1


source







All Articles