From 527bf5c191e3491edb7cdf3c4e90095c00597e8c Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 15 Apr 2022 09:31:18 +0800 Subject: [PATCH] Update Core --- .../Abstract/QueryableProvider/QueryableProvider.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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()) {