EntityFramework CTP5 DbContext T4模板“虚拟”关键字 [英] EntityFramework CTP5 DbContext T4 Template “virtual” keyword

查看:75
本文介绍了EntityFramework CTP5 DbContext T4模板“虚拟”关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


CTP5附带的DbContext T4模板没有关联修正,并且并非所有属性都标记为虚拟。这是否意味着它与上下文断开连接时不支持ChangeTracking?首先,当Context(通过动态代理)跟踪时,它是否支持ChangeTracking甚至
?我看到要求是所有属性都应标记为虚拟。非常感谢任何回复。


与EF4 POCO生成器相比,我们是否正在使用DbContext生成器丢失任何功能?

解决方案

< blockquote>有人可以帮忙解答这个吗?


The DbContext T4 template that comes with CTP5 does not have association fixup and not all properties are marked as virtual. Does it mean it does not support ChangeTracking when disconnected from context? First of all, does it support ChangeTracking even when tracked by Context (through dynamic proxies)? I see that the requirement is that all properties should be marked as virtual. Any response is greatly appreciated.

Are we losing any functionality using DbContext generator compared to EF4 POCO generator?

解决方案

Can anyone help answering this?


这篇关于EntityFramework CTP5 DbContext T4模板“虚拟”关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆