Update Subquery.ToList

This commit is contained in:
sunkaixuan
2025-03-07 17:58:06 +08:00
parent 5eb712b44d
commit c6439c8267

View File

@@ -2336,6 +2336,12 @@ namespace SqlSugar
new SugarParameter("@p",re.Value)
};
var value = UtilMethods.GetSqlString(config.DbType, "@p", p, true);
if (this.Context.CurrentConnectionConfig?.DbType == DbType.SqlServer&&
this.Context.CurrentConnectionConfig?.MoreSettings?.DisableNvarchar!=true&&
p?.FirstOrDefault()?.DbType == System.Data.DbType.String)
{
value = "N" + value;
}
sql = sql.Replace(re.Name, value);
}