乐观并发 [英] optimistic Concurrency
问题描述
您好,
我有一些问题。我正在使用.net framework 4.0。
I have a couple of questions. I am using .net framework 4.0.
1. 我想关闭乐观并发,因为它可能会产生开销。做这个的最好方式是什么?我讨厌遍历dbml表中的每一列并将其设置为never。
1. I would like to turn off optimistic concurrency because of the overhead it may impose. what is the best way to do this? I hate going through every column in my dbml tables and setting it to never.
2。我正在使用linq调用删除,更新和插入的存储过程。了解程序是否成功的方法是什么?即使更新成功,IExecuteResult也始终返回0。我想知道如何才能获得
影响的行数。
2. I am calling stored procedures for deletes ,updates and inserts using linq. What is the way to know if a procedure was successful? The IExecuteResult is returned as 0 all the time even when the update succeeds. I wonder how can I get the number of rows affected.
推荐答案
任何人都可以回答我的问题吗? 自12月6日以来我已经发布了这些问题!!!!!!!
谢谢
这篇关于乐观并发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!