开发者

entity framework ctp5 get unproxied type

I'm working with EF C开发者_如何学CTP5.

How can I get the unproxied type name of an entity loaded using EF.

Currently I get the proxied type.

Thanks, Ben


var unproxiedName = ObjectContext.GetObjectType(someEntity.GetType()).Name;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜