Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 EF4 中,是否可以将 POCO 对象(使用 new MyObject() 创建)转换为动态代理(就像使用 ObjectContext.CreateObject() 一样)?
将 EF4 与 T4 模板一起用于 POCO。
不,这是不可能的。这是 CreateObject 方法存在的原因。