mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 08:37:25 +08:00
Update DisableNvarchar
This commit is contained in:
parent
0954bed803
commit
34235d9a48
@ -179,7 +179,12 @@ namespace SqlSugar
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Context.Parameters.Add(new SugarParameter(appendValue, value));
|
||||
var p = new SugarParameter(appendValue, value);
|
||||
if (p.DbType == System.Data.DbType.String && this.Context?.SugarContext?.Context?.CurrentConnectionConfig?.MoreSettings?.DisableNvarchar == true)
|
||||
{
|
||||
p.DbType = System.Data.DbType.AnsiString;
|
||||
}
|
||||
this.Context.Parameters.Add(p);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user