mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Deleteable Where(string sql) bug
This commit is contained in:
@@ -191,16 +191,28 @@ namespace SqlSugar
|
||||
|
||||
public IDeleteable<T> Where(string whereString, SugarParameter parameter)
|
||||
{
|
||||
if (DeleteBuilder.Parameters == null)
|
||||
{
|
||||
DeleteBuilder.Parameters = new List<SugarParameter>();
|
||||
}
|
||||
DeleteBuilder.Parameters.Add(parameter);
|
||||
return this;
|
||||
}
|
||||
public IDeleteable<T> Where(string whereString, SugarParameter[] parameters)
|
||||
{
|
||||
if (DeleteBuilder.Parameters == null)
|
||||
{
|
||||
DeleteBuilder.Parameters = new List<SugarParameter>();
|
||||
}
|
||||
DeleteBuilder.Parameters.AddRange(parameters);
|
||||
return this;
|
||||
}
|
||||
public IDeleteable<T> Where(string whereString, List<SugarParameter> parameters)
|
||||
{
|
||||
if (DeleteBuilder.Parameters == null)
|
||||
{
|
||||
DeleteBuilder.Parameters = new List<SugarParameter>();
|
||||
}
|
||||
DeleteBuilder.Parameters.AddRange(parameters);
|
||||
return this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user