mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 08:37:25 +08:00
Update Subquery.ToList
This commit is contained in:
parent
15043be49d
commit
abc98c7c29
@ -2352,7 +2352,13 @@ namespace SqlSugar
|
|||||||
var p = new SugarParameter[] {
|
var p = new SugarParameter[] {
|
||||||
new SugarParameter("@p",re.Value)
|
new SugarParameter("@p",re.Value)
|
||||||
};
|
};
|
||||||
var value = UtilMethods.GetSqlString(config.DbType, "@p", p, true);
|
var isNvarchar = true;
|
||||||
|
if (this.Context.CurrentConnectionConfig?.DbType == DbType.SqlServer
|
||||||
|
&&this.Context.CurrentConnectionConfig?.MoreSettings?.DisableNvarchar!=true)
|
||||||
|
{
|
||||||
|
isNvarchar = false;
|
||||||
|
}
|
||||||
|
var value = UtilMethods.GetSqlString(config.DbType, "@p", p, isNvarchar);
|
||||||
sql = sql.Replace(re.Name, value);
|
sql = sql.Replace(re.Name, value);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user