Check.ExceptionEasy(UpdateObjs.Length>1,$"Optimistic lock can only handle a single update ",$"乐观锁只能处理单条更新");
Check.ExceptionEasy(!verColumn.UnderType.IsIn(UtilConstants.StringType,UtilConstants.LongType,UtilConstants.GuidType,UtilConstants.DateType),$"Optimistic locks can only be guid, long, and string types",$"乐观锁只能是Guid、Long和字符串类型");
Check.ExceptionEasy(this.UpdateBuilder.IsListUpdate==true," OptLock can only be used on a single object, and the argument cannot be List","乐观锁只能用于单个对象,参数不能是List,如果是一对多操作请更新主表统一用主表验证");
thrownewVersionExceptions(string.Format("UpdateVersionValidation {0} Not the latest version ",name));
@ -112,8 +114,10 @@ namespace SqlSugar
Check.ExceptionEasy(this.UpdateBuilder.IsListUpdate==true," OptLock can only be used on a single object, and the argument cannot be List","乐观锁只能用于单个对象,参数不能是List,如果是一对多操作请更新主表统一用主表验证");