处理并发与实体框架的最佳方式 [英] Best way to handle concurrency with entity framework
问题描述
我使用实体框架4.1.What是处理并发性的实体框架的最佳方式。有没有内置的功能来处理它的实体框架是什么? 我可以这样做,无需添加额外列的表,以保持行的版本?
I am using entity framework 4.1.What is the best way to handle concurrency with entity framework. Is there inbuilt functionality to handle it in entity framework? Can I do without adding extra column to the tables to keep row version?
推荐答案
你有没有见过这个教程: <一href="http://www.asp.net/entity-framework/tutorials/handling-concurrency-with-the-entity-framework-in-an-asp-net-mvc-application" rel="nofollow">http://www.asp.net/entity-framework/tutorials/handling-concurrency-with-the-entity-framework-in-an-asp-net-mvc-application
Have you seen this tutorial: http://www.asp.net/entity-framework/tutorials/handling-concurrency-with-the-entity-framework-in-an-asp-net-mvc-application
您可以不用一个rowversion列,但往往需要存储大量的状态,这可能会对性能产生负面影响。
You can do it without a rowversion column but that often requires storing a lot of state, which can adversely affect performance.
这篇关于处理并发与实体框架的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!