mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
-
This commit is contained in:
@@ -299,5 +299,10 @@ namespace SqlSugar
|
||||
{
|
||||
return "( " + fieldName + "=1 )";
|
||||
}
|
||||
|
||||
public virtual string Null()
|
||||
{
|
||||
return "NULL";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -53,5 +53,6 @@ namespace SqlSugar
|
||||
string GuidNew();
|
||||
string MergeString(params string[] strings);
|
||||
string EqualTrue(string value);
|
||||
string Null();
|
||||
}
|
||||
}
|
||||
|
@@ -55,7 +55,7 @@ namespace SqlSugar
|
||||
if (value == null && parentIsBinary)
|
||||
{
|
||||
parameter.BaseParameter.ValueIsNull = true;
|
||||
value = "NULL";
|
||||
value = this.Context.DbMehtods.Null();
|
||||
}
|
||||
AppendValue(parameter, isLeft, value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user