Home  >  Article  >  Database  >  C# SqlServer 记录

C# SqlServer 记录

WBOY
WBOYOriginal
2016-06-07 15:52:021758browse

行版本控制 CompareAllSearchableValues 更新和删除语句将在 WHERE 子句中包含表中的所有可搜索列。这等效于指定 CompareAllValuesUpdate | CompareAllValuesDelete 。 CompareRowVersion 如果表中存在任何 Timestamp 列,则这些列在 WHERE 子句中用于所有生

行版本控制

 

CompareAllSearchableValues

更新和删除语句将在 WHERE 子句中包含表中的所有可搜索列。这等效于指定 CompareAllValuesUpdate |CompareAllValuesDelete。 

C# SqlServer 记录

CompareRowVersion

如果表中存在任何 Timestamp 列,则这些列在 WHERE 子句中用于所有生成的更新语句。这等效于指定 CompareRowVersionUpdate |CompareRowVersionDelete。 

C# SqlServer 记录

OverwriteChanges

 

 

Timestamp 列 UpdCount

 

 

UpdCount  为 int列时

设置了主键更新,那么 UpdCount作为  sqlDataAdapter.UpdateCommand.Parameters.Add("UpdCount", SqlDbType.Int);

添加参数,Parameters里边 有对应的列,版本,控制。

http://msdn.microsoft.com/zh-cn/library/system.data.sqlclient.sqldataadapter.insertcommand.aspx

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn