Exemplo n.º 1
0
 private void InitClass() {
     this.DataSetName = "NewDataSet";
     this.Prefix = "";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tabletv = new tvDataTable();
     base.Tables.Add(this.tabletv);
     this.tablechannel = new channelDataTable();
     base.Tables.Add(this.tablechannel);
     this.table_display_name = new _display_nameDataTable();
     base.Tables.Add(this.table_display_name);
     this.tableicon = new iconDataTable();
     base.Tables.Add(this.tableicon);
     this.tableprogramme = new programmeDataTable();
     base.Tables.Add(this.tableprogramme);
     this.tabletitle = new titleDataTable();
     base.Tables.Add(this.tabletitle);
     this.table_sub_title = new _sub_titleDataTable();
     base.Tables.Add(this.table_sub_title);
     this.tabledesc = new descDataTable();
     base.Tables.Add(this.tabledesc);
     this.tablecredits = new creditsDataTable();
     base.Tables.Add(this.tablecredits);
     this.tableproducer = new producerDataTable();
     base.Tables.Add(this.tableproducer);
     this.tablepresenter = new presenterDataTable();
     base.Tables.Add(this.tablepresenter);
     this.tableguest = new guestDataTable();
     base.Tables.Add(this.tableguest);
     this.tabledirector = new directorDataTable();
     base.Tables.Add(this.tabledirector);
     this.tableactor = new actorDataTable();
     base.Tables.Add(this.tableactor);
     this.tablecategory = new categoryDataTable();
     base.Tables.Add(this.tablecategory);
     this.tablecountry = new countryDataTable();
     base.Tables.Add(this.tablecountry);
     global::System.Data.ForeignKeyConstraint fkc;
     fkc = new global::System.Data.ForeignKeyConstraint("tv_channel", new global::System.Data.DataColumn[] {
                 this.tabletv.tv_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablechannel.tv_IdColumn});
     this.tablechannel.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("channel_display-name", new global::System.Data.DataColumn[] {
                 this.tablechannel.channel_IdColumn}, new global::System.Data.DataColumn[] {
                 this.table_display_name.channel_IdColumn});
     this.table_display_name.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("channel_icon", new global::System.Data.DataColumn[] {
                 this.tablechannel.channel_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableicon.channel_IdColumn});
     this.tableicon.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("tv_programme", new global::System.Data.DataColumn[] {
                 this.tabletv.tv_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableprogramme.tv_IdColumn});
     this.tableprogramme.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("programme_title", new global::System.Data.DataColumn[] {
                 this.tableprogramme.programme_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tabletitle.programme_IdColumn});
     this.tabletitle.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("programme_sub-title", new global::System.Data.DataColumn[] {
                 this.tableprogramme.programme_IdColumn}, new global::System.Data.DataColumn[] {
                 this.table_sub_title.programme_IdColumn});
     this.table_sub_title.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("programme_desc", new global::System.Data.DataColumn[] {
                 this.tableprogramme.programme_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tabledesc.programme_IdColumn});
     this.tabledesc.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("programme_credits", new global::System.Data.DataColumn[] {
                 this.tableprogramme.programme_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablecredits.programme_IdColumn});
     this.tablecredits.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("credits_producer", new global::System.Data.DataColumn[] {
                 this.tablecredits.credits_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableproducer.credits_IdColumn});
     this.tableproducer.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("credits_presenter", new global::System.Data.DataColumn[] {
                 this.tablecredits.credits_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablepresenter.credits_IdColumn});
     this.tablepresenter.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("credits_guest", new global::System.Data.DataColumn[] {
                 this.tablecredits.credits_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableguest.credits_IdColumn});
     this.tableguest.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("credits_director", new global::System.Data.DataColumn[] {
                 this.tablecredits.credits_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tabledirector.credits_IdColumn});
     this.tabledirector.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("credits_actor", new global::System.Data.DataColumn[] {
                 this.tablecredits.credits_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableactor.credits_IdColumn});
     this.tableactor.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("programme_category", new global::System.Data.DataColumn[] {
                 this.tableprogramme.programme_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablecategory.programme_IdColumn});
     this.tablecategory.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("programme_country", new global::System.Data.DataColumn[] {
                 this.tableprogramme.programme_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablecountry.programme_IdColumn});
     this.tablecountry.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.relationtv_channel = new global::System.Data.DataRelation("tv_channel", new global::System.Data.DataColumn[] {
                 this.tabletv.tv_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablechannel.tv_IdColumn}, false);
     this.relationtv_channel.Nested = true;
     this.Relations.Add(this.relationtv_channel);
     this._relationchannel_display_name = new global::System.Data.DataRelation("channel_display-name", new global::System.Data.DataColumn[] {
                 this.tablechannel.channel_IdColumn}, new global::System.Data.DataColumn[] {
                 this.table_display_name.channel_IdColumn}, false);
     this._relationchannel_display_name.Nested = true;
     this.Relations.Add(this._relationchannel_display_name);
     this.relationchannel_icon = new global::System.Data.DataRelation("channel_icon", new global::System.Data.DataColumn[] {
                 this.tablechannel.channel_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableicon.channel_IdColumn}, false);
     this.relationchannel_icon.Nested = true;
     this.Relations.Add(this.relationchannel_icon);
     this.relationtv_programme = new global::System.Data.DataRelation("tv_programme", new global::System.Data.DataColumn[] {
                 this.tabletv.tv_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableprogramme.tv_IdColumn}, false);
     this.relationtv_programme.Nested = true;
     this.Relations.Add(this.relationtv_programme);
     this.relationprogramme_title = new global::System.Data.DataRelation("programme_title", new global::System.Data.DataColumn[] {
                 this.tableprogramme.programme_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tabletitle.programme_IdColumn}, false);
     this.relationprogramme_title.Nested = true;
     this.Relations.Add(this.relationprogramme_title);
     this._relationprogramme_sub_title = new global::System.Data.DataRelation("programme_sub-title", new global::System.Data.DataColumn[] {
                 this.tableprogramme.programme_IdColumn}, new global::System.Data.DataColumn[] {
                 this.table_sub_title.programme_IdColumn}, false);
     this._relationprogramme_sub_title.Nested = true;
     this.Relations.Add(this._relationprogramme_sub_title);
     this.relationprogramme_desc = new global::System.Data.DataRelation("programme_desc", new global::System.Data.DataColumn[] {
                 this.tableprogramme.programme_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tabledesc.programme_IdColumn}, false);
     this.relationprogramme_desc.Nested = true;
     this.Relations.Add(this.relationprogramme_desc);
     this.relationprogramme_credits = new global::System.Data.DataRelation("programme_credits", new global::System.Data.DataColumn[] {
                 this.tableprogramme.programme_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablecredits.programme_IdColumn}, false);
     this.relationprogramme_credits.Nested = true;
     this.Relations.Add(this.relationprogramme_credits);
     this.relationcredits_producer = new global::System.Data.DataRelation("credits_producer", new global::System.Data.DataColumn[] {
                 this.tablecredits.credits_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableproducer.credits_IdColumn}, false);
     this.relationcredits_producer.Nested = true;
     this.Relations.Add(this.relationcredits_producer);
     this.relationcredits_presenter = new global::System.Data.DataRelation("credits_presenter", new global::System.Data.DataColumn[] {
                 this.tablecredits.credits_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablepresenter.credits_IdColumn}, false);
     this.relationcredits_presenter.Nested = true;
     this.Relations.Add(this.relationcredits_presenter);
     this.relationcredits_guest = new global::System.Data.DataRelation("credits_guest", new global::System.Data.DataColumn[] {
                 this.tablecredits.credits_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableguest.credits_IdColumn}, false);
     this.relationcredits_guest.Nested = true;
     this.Relations.Add(this.relationcredits_guest);
     this.relationcredits_director = new global::System.Data.DataRelation("credits_director", new global::System.Data.DataColumn[] {
                 this.tablecredits.credits_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tabledirector.credits_IdColumn}, false);
     this.relationcredits_director.Nested = true;
     this.Relations.Add(this.relationcredits_director);
     this.relationcredits_actor = new global::System.Data.DataRelation("credits_actor", new global::System.Data.DataColumn[] {
                 this.tablecredits.credits_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableactor.credits_IdColumn}, false);
     this.relationcredits_actor.Nested = true;
     this.Relations.Add(this.relationcredits_actor);
     this.relationprogramme_category = new global::System.Data.DataRelation("programme_category", new global::System.Data.DataColumn[] {
                 this.tableprogramme.programme_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablecategory.programme_IdColumn}, false);
     this.relationprogramme_category.Nested = true;
     this.Relations.Add(this.relationprogramme_category);
     this.relationprogramme_country = new global::System.Data.DataRelation("programme_country", new global::System.Data.DataColumn[] {
                 this.tableprogramme.programme_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablecountry.programme_IdColumn}, false);
     this.relationprogramme_country.Nested = true;
     this.Relations.Add(this.relationprogramme_country);
 }
Exemplo n.º 2
0
 internal guestRow(global::System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableguest = ((guestDataTable)(this.Table));
 }
Exemplo n.º 3
0
 internal void InitVars(bool initTable) {
     this.tabletv = ((tvDataTable)(base.Tables["tv"]));
     if ((initTable == true)) {
         if ((this.tabletv != null)) {
             this.tabletv.InitVars();
         }
     }
     this.tablechannel = ((channelDataTable)(base.Tables["channel"]));
     if ((initTable == true)) {
         if ((this.tablechannel != null)) {
             this.tablechannel.InitVars();
         }
     }
     this.table_display_name = ((_display_nameDataTable)(base.Tables["display-name"]));
     if ((initTable == true)) {
         if ((this.table_display_name != null)) {
             this.table_display_name.InitVars();
         }
     }
     this.tableicon = ((iconDataTable)(base.Tables["icon"]));
     if ((initTable == true)) {
         if ((this.tableicon != null)) {
             this.tableicon.InitVars();
         }
     }
     this.tableprogramme = ((programmeDataTable)(base.Tables["programme"]));
     if ((initTable == true)) {
         if ((this.tableprogramme != null)) {
             this.tableprogramme.InitVars();
         }
     }
     this.tabletitle = ((titleDataTable)(base.Tables["title"]));
     if ((initTable == true)) {
         if ((this.tabletitle != null)) {
             this.tabletitle.InitVars();
         }
     }
     this.table_sub_title = ((_sub_titleDataTable)(base.Tables["sub-title"]));
     if ((initTable == true)) {
         if ((this.table_sub_title != null)) {
             this.table_sub_title.InitVars();
         }
     }
     this.tabledesc = ((descDataTable)(base.Tables["desc"]));
     if ((initTable == true)) {
         if ((this.tabledesc != null)) {
             this.tabledesc.InitVars();
         }
     }
     this.tablecredits = ((creditsDataTable)(base.Tables["credits"]));
     if ((initTable == true)) {
         if ((this.tablecredits != null)) {
             this.tablecredits.InitVars();
         }
     }
     this.tableproducer = ((producerDataTable)(base.Tables["producer"]));
     if ((initTable == true)) {
         if ((this.tableproducer != null)) {
             this.tableproducer.InitVars();
         }
     }
     this.tablepresenter = ((presenterDataTable)(base.Tables["presenter"]));
     if ((initTable == true)) {
         if ((this.tablepresenter != null)) {
             this.tablepresenter.InitVars();
         }
     }
     this.tableguest = ((guestDataTable)(base.Tables["guest"]));
     if ((initTable == true)) {
         if ((this.tableguest != null)) {
             this.tableguest.InitVars();
         }
     }
     this.tabledirector = ((directorDataTable)(base.Tables["director"]));
     if ((initTable == true)) {
         if ((this.tabledirector != null)) {
             this.tabledirector.InitVars();
         }
     }
     this.tableactor = ((actorDataTable)(base.Tables["actor"]));
     if ((initTable == true)) {
         if ((this.tableactor != null)) {
             this.tableactor.InitVars();
         }
     }
     this.tablecategory = ((categoryDataTable)(base.Tables["category"]));
     if ((initTable == true)) {
         if ((this.tablecategory != null)) {
             this.tablecategory.InitVars();
         }
     }
     this.tablecountry = ((countryDataTable)(base.Tables["country"]));
     if ((initTable == true)) {
         if ((this.tablecountry != null)) {
             this.tablecountry.InitVars();
         }
     }
     this.relationtv_channel = this.Relations["tv_channel"];
     this._relationchannel_display_name = this.Relations["channel_display-name"];
     this.relationchannel_icon = this.Relations["channel_icon"];
     this.relationtv_programme = this.Relations["tv_programme"];
     this.relationprogramme_title = this.Relations["programme_title"];
     this._relationprogramme_sub_title = this.Relations["programme_sub-title"];
     this.relationprogramme_desc = this.Relations["programme_desc"];
     this.relationprogramme_credits = this.Relations["programme_credits"];
     this.relationcredits_producer = this.Relations["credits_producer"];
     this.relationcredits_presenter = this.Relations["credits_presenter"];
     this.relationcredits_guest = this.Relations["credits_guest"];
     this.relationcredits_director = this.Relations["credits_director"];
     this.relationcredits_actor = this.Relations["credits_actor"];
     this.relationprogramme_category = this.Relations["programme_category"];
     this.relationprogramme_country = this.Relations["programme_country"];
 }