예제 #1
0
        public IEntityTranslator <TInput, TSchema> Create(TranslatorFactoryContext <TSchema> context)
        {
            var builder = new EntityTranslatorBuilder <TResult, TInput, TSchema>(context, _specification.Name);

            _specification.Apply(builder);

            return(builder.Build());
        }
예제 #2
0
        public IEntityTranslator <TInput, TSchema> Create(TranslatorFactoryContext <TSchema> context)
        {
            var builder = new EntityTranslatorBuilder <TResult, TInput, TSchema>(context, _specification.Name);

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

            _specification.Apply(builder);

            return(builder.Build());
        }