automapper框架优化
This commit is contained in:
@@ -21,7 +21,7 @@ namespace UIShare.Converters
|
||||
return allParameters;
|
||||
|
||||
// 过滤出类型匹配的参数
|
||||
return allParameters.Cast<ParameterModel>()
|
||||
return allParameters.Cast<ParameterVM>()
|
||||
.Where(p => IsTypeMatch(currentParamType, p.Type))
|
||||
.ToList();
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Data;
|
||||
using static UIShare.UIViewModel.ParameterModel;
|
||||
using static UIShare.UIViewModel.ParameterVM;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Data;
|
||||
using static UIShare.UIViewModel.ParameterModel;
|
||||
using static UIShare.UIViewModel.ParameterVM;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user