From d569d7f530b6c90e253fd1c9066ce8e9331c7016 Mon Sep 17 00:00:00 2001 From: "boxu.zheng" Date: Thu, 13 Jul 2023 11:37:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=97=B6=20=E6=97=A0=E6=B3=95=E5=A4=84?= =?UTF-8?q?=E7=90=86int=3Fstring=3F=E8=BF=99=E6=A0=B7=E7=9A=84=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppBase/Filters/FilterExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Application.Contracts/AppBase/Filters/FilterExtensions.cs b/Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Application.Contracts/AppBase/Filters/FilterExtensions.cs index 173eaba..7f75390 100644 --- a/Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Application.Contracts/AppBase/Filters/FilterExtensions.cs +++ b/Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Application.Contracts/AppBase/Filters/FilterExtensions.cs @@ -148,12 +148,12 @@ public static class FilterExtensions { var objValue = Convert.ChangeType(value, propertyType.GetGenericArguments()[0], CultureInfo.InvariantCulture); - constant = Expression.Constant(objValue); + constant = Expression.Constant(objValue, propertyType); } else if (propertyType.IsEnum) { var enumValue = (Enum)Enum.Parse(propertyType, value, true); - constant = Expression.Constant(enumValue); + constant = Expression.Constant(enumValue, propertyType); } else {