diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs index 7d44e1c2d..a9a70dcf2 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs @@ -418,7 +418,8 @@ namespace SqlSugar { ConditionalType = ConditionalType.Equal, FieldName = this.QueryBuilder.Builder.GetTranslationColumnName(column.DbColumnName), - FieldValue = value.ObjToString() + FieldValue = value.ObjToString(), + CSharpTypeName = column.PropertyInfo.PropertyType.Name }); if (this.Context.CurrentConnectionConfig.DbType == DbType.PostgreSQL) { @@ -483,7 +484,8 @@ namespace SqlSugar { ConditionalType = ConditionalType.Equal, FieldName = column.DbColumnName, - FieldValue = value.ObjToString() + FieldValue = value.ObjToString(), + CSharpTypeName=column.PropertyInfo.PropertyType.Name }); if (value != null && value.GetType().IsEnum()) {