且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

实体框架:使用POCO方法更改SOA中的跟踪

更新时间:2022-11-05 10:00:50

不幸的是,你不会找到在Entity Framework v1.0中简单的解决这个问题。
已经有很多讨论和很少的决议。它是EF v1.0的许多已知问题之一,有一种方式,您将最终不得不编写很多代码来处理这个问题。

Unfortunately you won't find a simple solution to this in Entity Framework v1.0. There has been much discussion and little resolution. It is one of the many known problems with EF v1.0 and one way or another you will end up having to write lot's of code to handle this.

在.NET 4.0中,ADO.NET团队已经引入了自我跟踪实体来解决这个问题。

In .NET 4.0 the ADO.NET team have introduced Self-Tracking Entities to tackle this very problem.