mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 01:47:06 +08:00
Update where(tree)
This commit is contained in:
parent
cb6f6bda0f
commit
775fecef25
@ -333,9 +333,14 @@ namespace SqlSugar
|
||||
}
|
||||
else
|
||||
{
|
||||
var con = ToConditionalCollections(it.Value as ConditionalTree,ref indexTree, parameters);
|
||||
var tree = it.Value as ConditionalTree;
|
||||
var con = ToConditionalCollections(tree, ref indexTree, parameters);
|
||||
var sqlobj = ConditionalModelToSql(new List<IConditionalModel> { con }, index);
|
||||
var sql = sqlobj.Key;
|
||||
if (sql.StartsWith(" NULL "))
|
||||
{
|
||||
sql = Regex.Replace(sql,"^ NULL ", it.Key.ToString().ToUpper());
|
||||
}
|
||||
RepairReplicationParameters(ref sql, sqlobj.Value, indexTree);
|
||||
model = new ConditionalModel()
|
||||
{
|
||||
|
@ -8,6 +8,7 @@ namespace SqlSugar
|
||||
public enum WhereType
|
||||
{
|
||||
And=0,
|
||||
Or=1
|
||||
Or=1,
|
||||
Null=-1
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user