what is the difference between entity and entity set names?

entity-framework

Question

I'm using .Net 3.5 with SP1.

This may be simple. But, I'm not sure about the difference between entity name and Entity Set Name

Please help me.

1
16
12/15/2010 3:19:00 PM

Accepted Answer

An entity name is a class name.

An entity set name is a query.

For example, you can have an entity named "Person" with an entity set named "People". This lets you write code like:

Person bob = Context.People.Where(p => p.Id == bobId).Single();
21
12/15/2010 6:09:00 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow