mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update deleteable wherecolumns
This commit is contained in:
parent
7d49087644
commit
eb62c17cd2
@ -256,8 +256,12 @@ namespace SqlSugar
|
||||
|
||||
public IDeleteable<T> WhereColumns(List<T> list,Expression<Func<T, object>> columns)
|
||||
{
|
||||
if (this.GetPrimaryKeys().IsNullOrEmpty())
|
||||
{
|
||||
tempPrimaryKeys = DeleteBuilder.GetExpressionValue(columns, ResolveExpressType.ArraySingle).GetResultArray().Select(it => this.SqlBuilder.GetNoTranslationColumnName(it)).ToList();
|
||||
}
|
||||
this.Where(list);
|
||||
if (columns != null)
|
||||
if (columns != null&& tempPrimaryKeys.IsNullOrEmpty())
|
||||
{
|
||||
tempPrimaryKeys = DeleteBuilder.GetExpressionValue(columns, ResolveExpressType.ArraySingle).GetResultArray().Select(it => this.SqlBuilder.GetNoTranslationColumnName(it)).ToList();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user