Add WhereColumns

This commit is contained in:
sunkaixuan 2022-04-30 10:39:35 +08:00
parent 0a9a3f8d44
commit 7e11f06518
2 changed files with 9 additions and 1 deletions

View File

@ -262,7 +262,14 @@ namespace SqlSugar
}
return this;
}
public IDeleteable<T> WhereColumns(string [] columns)
{
if (columns != null)
{
tempPrimaryKeys = columns.ToList();
}
return this;
}
public IDeleteable<T> RemoveDataCache()
{
this.RemoveCacheFunc = () =>

View File

@ -30,6 +30,7 @@ namespace SqlSugar
IDeleteable<T> Where(string whereString, SugarParameter[] parameters);
IDeleteable<T> Where(string whereString, List<SugarParameter> parameters);
IDeleteable<T> WhereColumns(Expression<Func<T, object>> columns);
IDeleteable<T> WhereColumns(string [] columns);
IDeleteable<T> Where(List<IConditionalModel> conditionalModels);
IDeleteable<T> EnableDiffLogEvent(object businessData = null);
IDeleteable<T> RemoveDataCache();