Logic Delete Async bug

This commit is contained in:
sunkaixuna 2021-12-21 11:08:36 +08:00
parent 2aff276203
commit fc916d00fa

View File

@ -30,11 +30,11 @@ namespace SqlSugar
List<SugarParameter> pars;
string where;
LogicFieldName = _ExecuteCommand(LogicFieldName, out db, out where, out pars);
var updateable = db.Updateable<T>().SetColumns(LogicFieldName, "@IsDeleted");
var updateable = db.Updateable<T>().SetColumns(LogicFieldName, true);
if (pars != null)
updateable.UpdateBuilder.Parameters.AddRange(pars);
Convert(updateable as UpdateableProvider<T>);
var result =await updateable.Where(where, new { IsDeleted = true }).ExecuteCommandAsync();
var result =await updateable.Where(where).ExecuteCommandAsync();
return result;
}