mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-26 22:25:49 +08:00
Update Deleteable
This commit is contained in:
@@ -123,6 +123,21 @@ namespace SqlSugar
|
||||
return this;
|
||||
}
|
||||
|
||||
public IDeleteable<T> Where(string whereString, SugarParameter parameter)
|
||||
{
|
||||
DeleteBuilder.Parameters.Add(parameter);
|
||||
return this;
|
||||
}
|
||||
public IDeleteable<T> Where(string whereString, SugarParameter[] parameters)
|
||||
{
|
||||
DeleteBuilder.Parameters.AddRange(parameters);
|
||||
return this;
|
||||
}
|
||||
public IDeleteable<T> Where(string whereString, List<SugarParameter> parameters)
|
||||
{
|
||||
DeleteBuilder.Parameters.AddRange(parameters);
|
||||
return this;
|
||||
}
|
||||
public IDeleteable<T> In<PkType>(List<PkType> primaryKeyValues)
|
||||
{
|
||||
if (primaryKeyValues == null || primaryKeyValues.Count() == 0)
|
||||
|
||||
@@ -19,6 +19,9 @@ namespace SqlSugar
|
||||
IDeleteable<T> In<PkType>(PkType[] primaryKeyValues);
|
||||
IDeleteable<T> In<PkType>(List<PkType> primaryKeyValues);
|
||||
IDeleteable<T> Where(string whereString, object parameters = null);
|
||||
IDeleteable<T> Where(string whereString, SugarParameter parameter);
|
||||
IDeleteable<T> Where(string whereString, SugarParameter[] parameters);
|
||||
IDeleteable<T> Where(string whereString, List<SugarParameter> parameters);
|
||||
KeyValuePair<string, List<SugarParameter>> ToSql();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user