Example #1
0
 public TranslateEngine(SchemaInfo sourceSchemaInfo, SchemaInfo targetSchemaInfo, DbInterpreter sourceInterpreter, DbInterpreter targetInerpreter, DbConverterOption option = null, string targetDbOwner = null)
 {
     this.sourceSchemaInfo  = sourceSchemaInfo;
     this.targetSchemaInfo  = targetSchemaInfo;
     this.sourceInterpreter = sourceInterpreter;
     this.targetInerpreter  = targetInerpreter;
     this.targetDbOwner     = targetDbOwner;
     this.option            = option;
 }
        public DbConverter(DbConveterInfo source, DbConveterInfo target, DbConverterOption option)
        {
            this.Source = source;
            this.Target = target;

            if (option != null)
            {
                this.Option = option;
            }

            this.Init();
        }