开发者

entity framework ctp5 get unproxied type

开发者 https://www.devze.com 2023-02-03 21:33 出处:网络
I\'m working with EF C开发者_如何学CTP5. How can I get the unproxied type name of an entity loaded using EF.

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

精彩评论

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