示例#1
0
 public static object GetValueFromField(EntityType entity, EntityFieldInfo entityFieldInfo)
 {
     return(entityFieldInfo.PropertyInfo.GetValue(entity, BindingFlags.GetProperty, null, null, CultureInfo.CurrentCulture));
 }
示例#2
0
 public static void SetValueToField(EntityType entity, EntityFieldInfo entityFieldInfo, object objectValue)
 {
     entityFieldInfo.PropertyInfo.SetValue(entity, objectValue, BindingFlags.SetProperty, null, null, CultureInfo.CurrentCulture);
 }