开发者

difference between entity name and Entity Set Name

开发者 https://www.devze.com 2023-01-31 06:05 出处:网络
I\'m using .Net 3.5 with SP1. This may be simple. But开发者_如何学C, I\'m not sure about the difference betweenentity name and Entity Set Name

I'm using .Net 3.5 with SP1.

This may be simple. But开发者_如何学C, I'm not sure about the difference between entity name and Entity Set Name

Please help me.


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();
0

精彩评论

暂无评论...
验证码 换一张
取 消