mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-26 02:39:14 +08:00
Add CloseVersionValidation
This commit is contained in:
@@ -29,6 +29,7 @@ namespace OrmTest.Demo
|
||||
db.Updateable(data).AS("student").ExecuteCommand();
|
||||
|
||||
data.CreateTime = time.Value.AddMilliseconds(-1);
|
||||
db.Updateable(data).AS("student").CloseVersionValidation().ExecuteCommand();//Close Version Validation
|
||||
db.Updateable(data).AS("student").ExecuteCommand();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,7 +107,8 @@ namespace OrmTest.Models
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
/// </summary>
|
||||
[SqlSugar.SugarColumn(IsEnableUpdateVersionValidation =true)]
|
||||
public byte[] Varbinary1 {get;set;}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user