public static T Set <T, TV>(this T entity, Expression <Func <T, TV> > attribute, IAttributeValueProvider valueProvider)
     where T : Entity => Set(entity, attribute, (TV)valueProvider.GetValueFor(Name <T>(), Name(attribute)));
 public static Entity Set(this Entity entity, string attributeName, IAttributeValueProvider attributeValueProvider)
 => Set(entity, attributeName, attributeValueProvider.GetValueFor(entity.LogicalName, attributeName));
 public static T Set <T, TV>(this T entity, Expression <Func <T, TV> > attribute, IAttributeValueProvider <T, TV> attributeValueProvider)
     where T : Entity => Set(entity, attribute, attributeValueProvider.GetValueFor(attribute));
Exemplo n.º 4
0
 public static void Set <T, TV>(this IEntitySetter <T> accessor, Expression <Func <T, TV> > attribute, IAttributeValueProvider <T, TV> attributeValueProvider)
     where T : Entity => accessor.Set(Name(attribute), attributeValueProvider.GetValueFor(attribute));