LINQ Links (Hot Question)

What does this mean in terms of "Entity" in LINQ?

What is the difference between EntitySet and EntityRef when talking about LINQ?

Can you give a real world example? How is Order and OrderItems etc.?

+2


source to share


1 answer


In the context of Linq-to-SQL, Entity basically just means an object that can be stored in the database. Note that this term is sometimes used more narrowly, for example. in a domain controlled project.



An EntitySet represents an entity relationship to many other objects, whereas an EntityRef represents a relationship to one other entity. In other words, if you have a one-to-two relationship between two entity classes, one end will be represented by an EntitySet and the other by an EntityRef.

+4


source







All Articles