mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Update List.Any
This commit is contained in:
parent
ecb623d7f5
commit
b90150aa52
@ -946,6 +946,20 @@ namespace SqlSugar
|
||||
newValue = value.ToSqlValue();
|
||||
}
|
||||
}
|
||||
if (columnInfo.UnderType == UtilConstants.StringType&& model.Conext?.SugarContext?.Context?.CurrentConnectionConfig?.DbType==DbType.SqlServer)
|
||||
{
|
||||
if (model.Conext?.SugarContext?.Context?.CurrentConnectionConfig?.MoreSettings?.DisableNvarchar != true)
|
||||
{
|
||||
if (columnInfo.SqlParameterDbType is System.Data.DbType type && type == System.Data.DbType.AnsiString)
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
newValue = "N" + newValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
sql = sql.Replace(replace, newValue);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user