예제 #1
0
 private void InitClass() {
     this.DataSetName = "MasterStore";
     this.Prefix = "";
     this.Namespace = "http://subsonicproject.com/schemas/MasterStore.xsd";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableProjects = new ProjectsDataTable();
     base.Tables.Add(this.tableProjects);
     this.tableProviderTypes = new ProviderTypesDataTable();
     base.Tables.Add(this.tableProviderTypes);
     this.tableProviders = new ProvidersDataTable();
     base.Tables.Add(this.tableProviders);
     this.tableConnectionStrings = new ConnectionStringsDataTable();
     base.Tables.Add(this.tableConnectionStrings);
     this.tableSubStageConfiguration = new SubStageConfigurationDataTable();
     base.Tables.Add(this.tableSubStageConfiguration);
     global::System.Data.ForeignKeyConstraint fkc;
     fkc = new global::System.Data.ForeignKeyConstraint("FK_Providers_Projects", new global::System.Data.DataColumn[] {
                 this.tableProviders.ProviderIdColumn}, new global::System.Data.DataColumn[] {
                 this.tableProjects.DefaultProviderColumn});
     this.tableProjects.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("FK_Projects_Providers", new global::System.Data.DataColumn[] {
                 this.tableProjects.ProjectIdColumn}, new global::System.Data.DataColumn[] {
                 this.tableProviders.ProjectIdColumn});
     this.tableProviders.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("FK_ConnectionStrings_Providers", new global::System.Data.DataColumn[] {
                 this.tableConnectionStrings.ConnectionStringIdColumn}, new global::System.Data.DataColumn[] {
                 this.tableProviders.ConnectionStringIdColumn});
     this.tableProviders.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("FK_ProviderTypes_Providers", new global::System.Data.DataColumn[] {
                 this.tableProviderTypes.ProviderTypeIdColumn}, new global::System.Data.DataColumn[] {
                 this.tableProviders.ProviderTypeIdColumn});
     this.tableProviders.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     this.relationFK_Providers_Projects = new global::System.Data.DataRelation("FK_Providers_Projects", new global::System.Data.DataColumn[] {
                 this.tableProviders.ProviderIdColumn}, new global::System.Data.DataColumn[] {
                 this.tableProjects.DefaultProviderColumn}, false);
     this.Relations.Add(this.relationFK_Providers_Projects);
     this.relationFK_Projects_Providers = new global::System.Data.DataRelation("FK_Projects_Providers", new global::System.Data.DataColumn[] {
                 this.tableProjects.ProjectIdColumn}, new global::System.Data.DataColumn[] {
                 this.tableProviders.ProjectIdColumn}, false);
     this.Relations.Add(this.relationFK_Projects_Providers);
     this.relationFK_ConnectionStrings_Providers = new global::System.Data.DataRelation("FK_ConnectionStrings_Providers", new global::System.Data.DataColumn[] {
                 this.tableConnectionStrings.ConnectionStringIdColumn}, new global::System.Data.DataColumn[] {
                 this.tableProviders.ConnectionStringIdColumn}, false);
     this.Relations.Add(this.relationFK_ConnectionStrings_Providers);
     this.relationFK_ProviderTypes_Providers = new global::System.Data.DataRelation("FK_ProviderTypes_Providers", new global::System.Data.DataColumn[] {
                 this.tableProviderTypes.ProviderTypeIdColumn}, new global::System.Data.DataColumn[] {
                 this.tableProviders.ProviderTypeIdColumn}, false);
     this.Relations.Add(this.relationFK_ProviderTypes_Providers);
 }
예제 #2
0
 internal SubStageConfigurationRow(global::System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableSubStageConfiguration = ((SubStageConfigurationDataTable)(this.Table));
 }
예제 #3
0
 internal void InitVars(bool initTable) {
     this.tableProjects = ((ProjectsDataTable)(base.Tables["Projects"]));
     if ((initTable == true)) {
         if ((this.tableProjects != null)) {
             this.tableProjects.InitVars();
         }
     }
     this.tableProviderTypes = ((ProviderTypesDataTable)(base.Tables["ProviderTypes"]));
     if ((initTable == true)) {
         if ((this.tableProviderTypes != null)) {
             this.tableProviderTypes.InitVars();
         }
     }
     this.tableProviders = ((ProvidersDataTable)(base.Tables["Providers"]));
     if ((initTable == true)) {
         if ((this.tableProviders != null)) {
             this.tableProviders.InitVars();
         }
     }
     this.tableConnectionStrings = ((ConnectionStringsDataTable)(base.Tables["ConnectionStrings"]));
     if ((initTable == true)) {
         if ((this.tableConnectionStrings != null)) {
             this.tableConnectionStrings.InitVars();
         }
     }
     this.tableSubStageConfiguration = ((SubStageConfigurationDataTable)(base.Tables["SubStageConfiguration"]));
     if ((initTable == true)) {
         if ((this.tableSubStageConfiguration != null)) {
             this.tableSubStageConfiguration.InitVars();
         }
     }
     this.relationFK_Providers_Projects = this.Relations["FK_Providers_Projects"];
     this.relationFK_Projects_Providers = this.Relations["FK_Projects_Providers"];
     this.relationFK_ConnectionStrings_Providers = this.Relations["FK_ConnectionStrings_Providers"];
     this.relationFK_ProviderTypes_Providers = this.Relations["FK_ProviderTypes_Providers"];
 }