Beispiel #1
0
        public static void Set <TResult, TEntity, TSchema, T>(this IEntityTranslatorConfigurator <TResult, TEntity, TSchema> configurator,
                                                              Expression <Func <TResult, Value <T> > > propertyExpression, SetValueProvider <TEntity, TSchema, T> valueProvider)
            where TSchema : Entity
            where TEntity : TSchema
            where TResult : TSchema
        {
            var specification = new SetValuePropertyTranslatorSpecification <TResult, T, TEntity, TSchema>(propertyExpression, valueProvider);

            configurator.Add(specification);
        }
Beispiel #2
0
 public TranslateEntityValueUsingConfigurator(IEntityTranslatorConfigurator <TResult, TInput, TSchema> configurator,
                                              Expression <Func <TResult, Value <TEntity> > > propertyExpression)
 {
     _configurator       = configurator;
     _propertyExpression = propertyExpression;
 }