mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 10:49:36 +08:00
-
This commit is contained in:
parent
9562e71cfa
commit
a59d8cb6e3
@ -105,7 +105,14 @@ namespace SqlSugar
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public IDeleteable<T> In<PkType>(List<PkType> primaryKeyValues) {
|
||||
if (primaryKeyValues == null || primaryKeyValues.Count() == 0)
|
||||
{
|
||||
Where("1=2 ");
|
||||
return this;
|
||||
}
|
||||
return In<PkType>(primaryKeyValues.ToArray());
|
||||
}
|
||||
public IDeleteable<T> In<PkType>(PkType[] primaryKeyValues)
|
||||
{
|
||||
if (primaryKeyValues == null || primaryKeyValues.Count() == 0)
|
||||
|
@ -16,6 +16,7 @@ namespace SqlSugar
|
||||
IDeleteable<T> Where(List<T> deleteObjs);
|
||||
IDeleteable<T> In<PkType>(PkType primaryKeyValue);
|
||||
IDeleteable<T> In<PkType>(PkType[] primaryKeyValues);
|
||||
IDeleteable<T> In<PkType>(List<PkType> primaryKeyValues);
|
||||
IDeleteable<T> Where(string whereString,object whereObj=null);
|
||||
KeyValuePair<string, List<SugarParameter>> ToSql();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user