コード例 #1
0
        public CodeGenDb(OracleGenie owner)
        {
            genie = owner;
            owner.Model.MetaObjects.SetUnprocessedAll();
            environment = owner.Model.Lamp.GenieLampUtils.GetEnvironmentHelper(TargetEnvironment.OracleDb);

            createSchema            = genie.Config.Params.ValueByName("CreateSchema", createSchema);
            schemaPassword          = genie.Config.Params.ValueByName("Schema.Password", schemaPassword);
            schemaDefaultTablespace = genie.Config.Params.ValueByName("Schema.DefaultTablespace", schemaDefaultTablespace);
            schemaTempTablespace    = genie.Config.Params.ValueByName("Schema.TempTablespace", schemaTempTablespace);
            schemaGrantDba          = genie.Config.Params.ValueByName("Schema.GrantDba", schemaGrantDba);
            useUniqueIndexes        = genie.Config.Params.ValueByName("UniqueIndexConstraint", useUniqueIndexes);

            updater = owner.Model.Lamp.CodeWritersFactory.CreateCodeWriterPlSql();
            updater.DefaultOutFileEncoding = owner.Config.OutFileEncoding;
            creator = genie.Model.Lamp.CodeWritersFactory.CreateCodeWriterPlSql();
            creator.DefaultOutFileEncoding = owner.Config.OutFileEncoding;
            cleaner = genie.Model.Lamp.CodeWritersFactory.CreateCodeWriterPlSql();
            cleaner.DefaultOutFileEncoding = owner.Config.OutFileEncoding;

            outFileNameDDLCreate = Path.Combine(genie.Config.OutDir, "CRE_" + genie.Config.OutFileName);
            outFileNameDDLUpdate = Path.Combine(genie.Config.OutDir, "UPD_" + genie.Config.OutFileName);
            outFileNameDDLDelete = Path.Combine(genie.Config.OutDir, "DEL_" + genie.Config.OutFileName);
        }
コード例 #2
0
 public DbUpdater(OracleGenie genie)
 {
     this.genie = genie;
 }