mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-03 12:18:00 +08:00
Synchronization code
This commit is contained in:
parent
518548d14b
commit
d1e427b45a
@ -738,13 +738,17 @@ namespace SqlSugar
|
||||
ConditionalType = ConditionalType.Equal,
|
||||
FieldName = this.QueryBuilder.Builder.GetTranslationColumnName(column.DbColumnName),
|
||||
FieldValue = value.ObjToStringNew(),
|
||||
CSharpTypeName = column.PropertyInfo.PropertyType.Name
|
||||
CSharpTypeName = column.UnderType.Name
|
||||
});
|
||||
if(value is Enum&&this.Context.CurrentConnectionConfig?.MoreSettings?.TableEnumIsString!=true)
|
||||
if (value is Enum && this.Context.CurrentConnectionConfig?.MoreSettings?.TableEnumIsString != true)
|
||||
{
|
||||
data.Value.FieldValue = Convert.ToInt64(value).ObjToString();
|
||||
data.Value.CSharpTypeName = "int";
|
||||
}
|
||||
else if (value != null&&column.UnderType==UtilConstants.DateType)
|
||||
{
|
||||
data.Value.FieldValue = Convert.ToDateTime(value).ToString("yyyy-MM-dd HH:mm:ss.fff");
|
||||
}
|
||||
//if (this.Context.CurrentConnectionConfig.DbType == DbType.PostgreSQL)
|
||||
//{
|
||||
// data.Value.FieldValueConvertFunc = it =>
|
||||
|
Loading…
Reference in New Issue
Block a user