本文介绍了并发冲突错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

在此代码中:

Hello

in this code:

SqlConnection CON1 = new SqlConnection();
CON1.ConnectionString = DATAPROVIDER.DataProvider.ConnectionString;
CON1.Open();
SqlCommand b21 = new SqlCommand("select * from " + DetailTableName);
GridEXTable _table1 = ((GridEX)ChildControl).RootTable;
SqlDataAdapter sda1 = new SqlDataAdapter(b21.CommandText, CON1);
SqlCommandBuilder cmb1 = new SqlCommandBuilder(sda1);
cmb1.GetDeleteCommand();
sda1.Update(table);
CON1.Close();


我收到此错误:

并发冲突:UpdateCommand影响了预期的1条记录中的0条.

请帮帮我.
谢谢


I recieve this error:

Concurrency violation: the UpdateCommand affected 0 of the expected 1 records.

Please help me.
Thanks

推荐答案




这篇关于并发冲突错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 02:44