安虹睿 1 year ago
parent
commit
5bdbc37280
  1. 4
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Application.Contracts/AppBase/Filters/FilterExtensions.cs
  2. 3
      Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Web/appsettings.json

4
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
{

3
Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.Web/appsettings.json

@ -35,7 +35,8 @@
//},
"ConnectionStrings": {
//"Default": "Server=.;Database=Faster.Zheng.Winin;uid=sa;pwd=sasa;timeout=6000;Encrypt=False"
"Default": "Server=dev.ccwin-in.com,13319;Database=Faster.Zheng.Winin;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;Encrypt=False;"
"Default": "Server=dev.ccwin-in.com,13319;Database=Faster.Zheng.Winin;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;Encrypt=False;",
"DataExchange": "Server=dev.ccwin-in.com,13319;Database=AIC_DataExchange;Uid=ccwin-in;Pwd=Microsoft@2022;timeout=6000;Encrypt=False;"
},
"StringEncryption": {
"DefaultPassPhrase": "Aj66rJI3krHbVhS6"

Loading…
Cancel
Save