Exemplo n.º 1
0
        public IEntityTranslator <TInput, TSchema> Create(TranslateFactoryContext <TSchema> context)
        {
            var builder = new EntityTranslateBuilder <TResult, TInput, TSchema>(context);

            _specification.Apply(builder);

            return(builder.Build());
        }
Exemplo n.º 2
0
        public IEntityTranslator <TInput, TSchema> Create(TranslateFactoryContext <TSchema> context)
        {
            var builder = new EntityTranslateBuilder <TResult, TInput, TSchema>(context);

            builder.CopyPropertyVisitor    = new HL7CopyTranslateBuilderPropertyVisitor <TResult, TInput, TSchema>(builder);
            builder.MissingPropertyVisitor = new HL7MissingTranslateBuilderPropertyVisitor <TResult, TInput, TSchema>(builder);

            _specification.Apply(builder);

            return(builder.Build());
        }