Update 人大金仓

This commit is contained in:
sunkaixuan
2025-11-08 14:04:52 +08:00
parent 5d47227c65
commit f893a80dc6
3 changed files with 15 additions and 2 deletions

View File

@@ -104,6 +104,7 @@ namespace SqlSugar
public DateTime GetDate()
{
var sqlBuilder = InstanceFactory.GetSqlbuilder(this.Context.CurrentConnectionConfig);
sqlBuilder.Context = this.Context;
var obj= this.Ado.GetScalar(sqlBuilder.FullSqlDateNow);
if (obj is DateTime s)
return s;

View File

@@ -24,6 +24,10 @@ namespace SqlSugar
{
get
{
if (UtilMethods.GetDataBaseModel(this.Context) == DbType.SqlServer)
{
return "getdate()";
}
return "current_date";
}
}
@@ -31,6 +35,10 @@ namespace SqlSugar
{
get
{
if (UtilMethods.GetDataBaseModel(this.Context) == DbType.SqlServer)
{
return "select getdate()";
}
return "select current_date";
}
}

View File

@@ -18,6 +18,10 @@ namespace SqlSugar
{
public class UtilMethods
{
public static DbType? GetDataBaseModel(ISqlSugarClient client)
{
return client?.CurrentConnectionConfig?.MoreSettings?.DatabaseModel;
}
public static bool IsArrayOrList(Type propertyType)
{
if (propertyType==null||propertyType == typeof(string))