@@ -108,20 +108,20 @@ public static class Utility
108108 /// <typeparam name="TResult"></typeparam>
109109 /// <param name="model"></param>
110110 /// <param name="fieldName"></param>
111- /// <param name="supportComplexProperty"></param>
112111 /// <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 ) ;
114113
115114 /// <summary>
116115 /// 获取 指定对象的属性值
117116 /// </summary>
118117 /// <param name="model"></param>
119118 /// <param name="fieldName"></param>
120- /// <param name="supportComplexProperty"></param>
121119 /// <returns></returns>
122- public static object ? GetPropertyValue ( object model , string fieldName , bool supportComplexProperty = true )
120+ public static object ? GetPropertyValue ( object model , string fieldName )
123121 {
124- return model . GetType ( ) . Assembly . IsDynamic ? ReflectionInvoke ( ) : LambdaInvoke ( ) ;
122+ return model . GetType ( ) . Assembly . IsDynamic
123+ ? ReflectionInvoke ( )
124+ : GetPropertyValue < object , object ? > ( model , fieldName ) ;
125125
126126 object ? ReflectionInvoke ( )
127127 {
@@ -133,8 +133,6 @@ public static class Utility
133133 }
134134 return ret ;
135135 }
136-
137- object ? LambdaInvoke ( ) => GetPropertyValue < object , object ? > ( model , fieldName , supportComplexProperty ) ;
138136 }
139137
140138 /// <summary>
@@ -145,9 +143,8 @@ public static class Utility
145143 /// <param name="model"></param>
146144 /// <param name="fieldName"></param>
147145 /// <param name="value"></param>
148- /// <param name="supportComplexProperty"></param>
149146 /// <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 ) ;
151148
152149 /// <summary>
153150 /// 获得 排序方法
@@ -869,7 +866,7 @@ static Expression<Func<ComponentBase, object, string, object>> CreateLambda(Type
869866 /// <param name="model"></param>
870867 /// <param name="fieldName"></param>
871868 /// <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 ) ) ;
873870
874871 /// <summary>
875872 /// 获得指定泛型的 IEditorItem 集合
0 commit comments