mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Deleteable Where(string sql) bug
This commit is contained in:
parent
cd6fb02337
commit
5f48d79f1e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user