internal void InitVars(bool initTable) { this.tablecurrentservicedata = ((currentservicedataDataTable)(base.Tables["currentservicedata"])); if ((initTable == true)) { if ((this.tablecurrentservicedata != null)) { this.tablecurrentservicedata.InitVars(); } } this.tableservice = ((serviceDataTable)(base.Tables["service"])); if ((initTable == true)) { if ((this.tableservice != null)) { this.tableservice.InitVars(); } } this.tableaudio_channels = ((audio_channelsDataTable)(base.Tables["audio_channels"])); if ((initTable == true)) { if ((this.tableaudio_channels != null)) { this.tableaudio_channels.InitVars(); } } this.tablechannel = ((channelDataTable)(base.Tables["channel"])); if ((initTable == true)) { if ((this.tablechannel != null)) { this.tablechannel.InitVars(); } } this.tablecurrent_event = ((current_eventDataTable)(base.Tables["current_event"])); if ((initTable == true)) { if ((this.tablecurrent_event != null)) { this.tablecurrent_event.InitVars(); } } this.tablenext_event = ((next_eventDataTable)(base.Tables["next_event"])); if ((initTable == true)) { if ((this.tablenext_event != null)) { this.tablenext_event.InitVars(); } } this.relationcurrentservicedata_service = this.Relations["currentservicedata_service"]; this.relationcurrentservicedata_audio_channels = this.Relations["currentservicedata_audio_channels"]; this.relationaudio_channels_channel = this.Relations["audio_channels_channel"]; this.relationcurrentservicedata_current_event = this.Relations["currentservicedata_current_event"]; this.relationcurrentservicedata_next_event = this.Relations["currentservicedata_next_event"]; }
private void InitClass() { this.DataSetName = "NewDataSet"; this.Prefix = ""; this.EnforceConstraints = true; this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tablecurrentservicedata = new currentservicedataDataTable(); base.Tables.Add(this.tablecurrentservicedata); this.tableservice = new serviceDataTable(); base.Tables.Add(this.tableservice); this.tableaudio_channels = new audio_channelsDataTable(); base.Tables.Add(this.tableaudio_channels); this.tablechannel = new channelDataTable(); base.Tables.Add(this.tablechannel); this.tablecurrent_event = new current_eventDataTable(); base.Tables.Add(this.tablecurrent_event); this.tablenext_event = new next_eventDataTable(); base.Tables.Add(this.tablenext_event); global::System.Data.ForeignKeyConstraint fkc; fkc = new global::System.Data.ForeignKeyConstraint("currentservicedata_service", new global::System.Data.DataColumn[] { this.tablecurrentservicedata.currentservicedata_IdColumn}, new global::System.Data.DataColumn[] { this.tableservice.currentservicedata_IdColumn}); this.tableservice.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("currentservicedata_audio_channels", new global::System.Data.DataColumn[] { this.tablecurrentservicedata.currentservicedata_IdColumn}, new global::System.Data.DataColumn[] { this.tableaudio_channels.currentservicedata_IdColumn}); this.tableaudio_channels.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("audio_channels_channel", new global::System.Data.DataColumn[] { this.tableaudio_channels.audio_channels_IdColumn}, new global::System.Data.DataColumn[] { this.tablechannel.audio_channels_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("currentservicedata_current_event", new global::System.Data.DataColumn[] { this.tablecurrentservicedata.currentservicedata_IdColumn}, new global::System.Data.DataColumn[] { this.tablecurrent_event.currentservicedata_IdColumn}); this.tablecurrent_event.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("currentservicedata_next_event", new global::System.Data.DataColumn[] { this.tablecurrentservicedata.currentservicedata_IdColumn}, new global::System.Data.DataColumn[] { this.tablenext_event.currentservicedata_IdColumn}); this.tablenext_event.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.relationcurrentservicedata_service = new global::System.Data.DataRelation("currentservicedata_service", new global::System.Data.DataColumn[] { this.tablecurrentservicedata.currentservicedata_IdColumn}, new global::System.Data.DataColumn[] { this.tableservice.currentservicedata_IdColumn}, false); this.relationcurrentservicedata_service.Nested = true; this.Relations.Add(this.relationcurrentservicedata_service); this.relationcurrentservicedata_audio_channels = new global::System.Data.DataRelation("currentservicedata_audio_channels", new global::System.Data.DataColumn[] { this.tablecurrentservicedata.currentservicedata_IdColumn}, new global::System.Data.DataColumn[] { this.tableaudio_channels.currentservicedata_IdColumn}, false); this.relationcurrentservicedata_audio_channels.Nested = true; this.Relations.Add(this.relationcurrentservicedata_audio_channels); this.relationaudio_channels_channel = new global::System.Data.DataRelation("audio_channels_channel", new global::System.Data.DataColumn[] { this.tableaudio_channels.audio_channels_IdColumn}, new global::System.Data.DataColumn[] { this.tablechannel.audio_channels_IdColumn}, false); this.relationaudio_channels_channel.Nested = true; this.Relations.Add(this.relationaudio_channels_channel); this.relationcurrentservicedata_current_event = new global::System.Data.DataRelation("currentservicedata_current_event", new global::System.Data.DataColumn[] { this.tablecurrentservicedata.currentservicedata_IdColumn}, new global::System.Data.DataColumn[] { this.tablecurrent_event.currentservicedata_IdColumn}, false); this.relationcurrentservicedata_current_event.Nested = true; this.Relations.Add(this.relationcurrentservicedata_current_event); this.relationcurrentservicedata_next_event = new global::System.Data.DataRelation("currentservicedata_next_event", new global::System.Data.DataColumn[] { this.tablecurrentservicedata.currentservicedata_IdColumn}, new global::System.Data.DataColumn[] { this.tablenext_event.currentservicedata_IdColumn}, false); this.relationcurrentservicedata_next_event.Nested = true; this.Relations.Add(this.relationcurrentservicedata_next_event); }
internal currentservicedataRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tablecurrentservicedata = ((currentservicedataDataTable)(this.Table)); }