本文介绍了实体框架自我跟踪实体与工作单元的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Entity框架自我跟踪实体和实现工作单元架构有什么区别?据我所知,两者都是跟踪对象,一个db调用提交更改。所以我无法弄清楚那些差异。有人可以指出我在哪种情况下应该使用什么?
我正在使用实体框架5和WCF服务应用程序。
What is the difference between using Entity framework self tracking entities and implementing Unit of work architecture? As i understand both are keep tracking of the objects, one db call for commit changes. So i cant figure out the difference of those. can some one point me about what should used in which case?
I'm using entity framework 5 with WCF service application.
推荐答案
这篇关于实体框架自我跟踪实体与工作单元的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!