mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
Synchronization code
This commit is contained in:
@@ -848,7 +848,12 @@ namespace SqlSugar
|
||||
FieldName = this.QueryBuilder.Builder.GetTranslationColumnName(column.DbColumnName),
|
||||
FieldValue = disableQueryWhereColumnRemoveTrim?value.ObjToStringNoTrim() : value.ObjToStringNew(),
|
||||
CSharpTypeName = column.PropertyInfo.PropertyType.Name
|
||||
});
|
||||
});
|
||||
if (value == null)
|
||||
{
|
||||
data.Value.FieldValue = null;
|
||||
data.Value.ConditionalType = ConditionalType.EqualNull;
|
||||
}
|
||||
if (value is Enum && this.Context.CurrentConnectionConfig?.MoreSettings?.TableEnumIsString != true)
|
||||
{
|
||||
data.Value.FieldValue = Convert.ToInt64(value).ObjToString();
|
||||
|
@@ -50,6 +50,10 @@ namespace SqlSugar
|
||||
{
|
||||
result.Length = 1;
|
||||
}
|
||||
if (result.DataType.EqualCase("timestamp")&&this.Context.CurrentConnectionConfig?.MoreSettings?.DatabaseModel == DbType.SqlServer)
|
||||
{
|
||||
result.DataType = "datetime";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user