Пример #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);
 }