Exemple #1
0
        public void By(Action <IEntityTranslatorConfigurator <TEntity, TEntity, TSchema> > configure)
        {
            var specification = new EntityTranslatorSpecification <TEntity, TEntity, TSchema>();

            configure?.Invoke(specification);

            var translateSpecification = new TranslateEntityInlineSpecification <TEntity, TSchema>(specification);

            _configurator.Add(translateSpecification);
        }
Exemple #2
0
        public void By(Action <IEntityTranslatorConfigurator <TEntity, TEntity, TSchema> > configure)
        {
            var specification = new EntityTranslatorSpecification <TEntity, TEntity, TSchema>();

            configure?.Invoke(specification);

            var translateSpecification = new TranslateEntityValueInlineSpecification <TResult, TInput, TEntity, TSchema>(_propertyExpression, specification);

            _configurator.Add(translateSpecification);
        }