我可以在实体框架4.1中使用自我跟踪实体和DBContext吗?
问题描述:
我想知道DBContext(EF 4.1)是否支持自我跟踪实体.如果是,该怎么办?
I want to know if DBContext (EF 4.1) supports Self Tracking Entities. If yes, how can I do that?
答
否,除非您重写模板以支持它们.当前模板取决于ObjectContext API.
No unless you rewrite the template to support them. The current template is dependent on ObjectContext API.