Update 人大金仓[SqlServer]

This commit is contained in:
sunkaixuan
2024-08-13 19:24:17 +08:00
parent 03e7b3c01b
commit c71a1ac798
2 changed files with 9 additions and 1 deletions

View File

@@ -653,6 +653,10 @@ namespace SqlSugar
{
return resulut.Select<T>("unionTable.*");
}
else if (this.Context.CurrentConnectionConfig?.MoreSettings?.IsWithNoLockQuery==true)
{
return resulut.Select<T>(sqlBuilder.SqlSelectAll).With(SqlWith.Null);
}
else
{
return resulut.Select<T>(sqlBuilder.SqlSelectAll);

View File

@@ -134,6 +134,10 @@ namespace SqlSugar
}
var value = GetNewExpressionValue(express.Object);
var dateString2 = this.Context.DbMehtods.GetDateString(value, format);
if (IsSqlServerModel())
{
dateString2= string.Format("FORMAT({0},'{1}','en-US')", value, format);
}
if (dateString2 == null)
{
var dateString = GeDateFormat(format, value);