@@ -108,20 +108,20 @@ public static class Utility
108
108
/// <typeparam name="TResult"></typeparam>
109
109
/// <param name="model"></param>
110
110
/// <param name="fieldName"></param>
111
- /// <param name="supportComplexProperty"></param>
112
111
/// <returns></returns>
113
- public static TResult GetPropertyValue < TModel , TResult > ( TModel model , string fieldName , bool supportComplexProperty = true ) => CacheManager . GetPropertyValue < TModel , TResult > ( model , fieldName , supportComplexProperty ) ;
112
+ public static TResult GetPropertyValue < TModel , TResult > ( TModel model , string fieldName ) => CacheManager . GetPropertyValue < TModel , TResult > ( model , fieldName ) ;
114
113
115
114
/// <summary>
116
115
/// 获取 指定对象的属性值
117
116
/// </summary>
118
117
/// <param name="model"></param>
119
118
/// <param name="fieldName"></param>
120
- /// <param name="supportComplexProperty"></param>
121
119
/// <returns></returns>
122
- public static object ? GetPropertyValue ( object model , string fieldName , bool supportComplexProperty = true )
120
+ public static object ? GetPropertyValue ( object model , string fieldName )
123
121
{
124
- return model . GetType ( ) . Assembly . IsDynamic ? ReflectionInvoke ( ) : LambdaInvoke ( ) ;
122
+ return model . GetType ( ) . Assembly . IsDynamic
123
+ ? ReflectionInvoke ( )
124
+ : GetPropertyValue < object , object ? > ( model , fieldName ) ;
125
125
126
126
object ? ReflectionInvoke ( )
127
127
{
@@ -133,8 +133,6 @@ public static class Utility
133
133
}
134
134
return ret ;
135
135
}
136
-
137
- object ? LambdaInvoke ( ) => GetPropertyValue < object , object ? > ( model , fieldName , supportComplexProperty ) ;
138
136
}
139
137
140
138
/// <summary>
@@ -145,9 +143,8 @@ public static class Utility
145
143
/// <param name="model"></param>
146
144
/// <param name="fieldName"></param>
147
145
/// <param name="value"></param>
148
- /// <param name="supportComplexProperty"></param>
149
146
/// <returns></returns>
150
- public static void SetPropertyValue < TModel , TValue > ( TModel model , string fieldName , TValue value , bool supportComplexProperty = true ) => CacheManager . SetPropertyValue ( model , fieldName , value , supportComplexProperty ) ;
147
+ public static void SetPropertyValue < TModel , TValue > ( TModel model , string fieldName , TValue value ) => CacheManager . SetPropertyValue ( model , fieldName , value ) ;
151
148
152
149
/// <summary>
153
150
/// 获得 排序方法
@@ -869,7 +866,7 @@ static Expression<Func<ComponentBase, object, string, object>> CreateLambda(Type
869
866
/// <param name="model"></param>
870
867
/// <param name="fieldName"></param>
871
868
/// <returns></returns>
872
- public static EventCallback < TType > CreateCallback < TType > ( ComponentBase component , object model , string fieldName ) => EventCallback . Factory . Create < TType > ( component , t => CacheManager . SetPropertyValue ( model , fieldName , t , true ) ) ;
869
+ public static EventCallback < TType > CreateCallback < TType > ( ComponentBase component , object model , string fieldName ) => EventCallback . Factory . Create < TType > ( component , t => CacheManager . SetPropertyValue ( model , fieldName , t ) ) ;
873
870
874
871
/// <summary>
875
872
/// 获得指定泛型的 IEditorItem 集合
0 commit comments