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 {