예제 #1
0
        public void Using <T>()
            where T : IEntityTranslateSpecification <TEntity, TEntity, TSchema>, new()
        {
            var specification = new TranslateEntityUsingSpecification <T, TEntity, TSchema>(() => new T());

            _configurator.Add(specification);
        }
예제 #2
0
        public void Using <T>(Func <T> specificationFactory)
            where T : IEntityTranslateSpecification <TEntity, TEntity, TSchema>
        {
            var specification = new TranslateEntityUsingSpecification <T, TEntity, TSchema>(() => specificationFactory());

            _configurator.Add(specification);
        }