Add CloseVersionValidation

This commit is contained in:
sunkaixuan
2018-10-13 04:13:14 +08:00
parent 3a6c54d9a6
commit 849a707ad4
4 changed files with 12 additions and 2 deletions

View File

@@ -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();
}
}

View File

@@ -107,7 +107,8 @@ namespace OrmTest.Models
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
/// </summary>
[SqlSugar.SugarColumn(IsEnableUpdateVersionValidation =true)]
public byte[] Varbinary1 {get;set;}
/// <summary>