internal void InitVars(bool initTable) { this.tableprogram = ((programDataTable)(base.Tables["program"])); if ((initTable == true)) { if ((this.tableprogram != null)) { this.tableprogram.InitVars(); } } this.tablecommands = ((commandsDataTable)(base.Tables["commands"])); if ((initTable == true)) { if ((this.tablecommands != null)) { this.tablecommands.InitVars(); } } this.tablecommand = ((commandDataTable)(base.Tables["command"])); if ((initTable == true)) { if ((this.tablecommand != null)) { this.tablecommand.InitVars(); } } this.relationprogram_commands = this.Relations["program_commands"]; this.relationcommands_command = this.Relations["commands_command"]; }
private void InitClass() { this.DataSetName = "programs"; this.Prefix = ""; this.EnforceConstraints = true; this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tableprogram = new programDataTable(); base.Tables.Add(this.tableprogram); this.tablecommands = new commandsDataTable(); base.Tables.Add(this.tablecommands); this.tablecommand = new commandDataTable(); base.Tables.Add(this.tablecommand); global::System.Data.ForeignKeyConstraint fkc; fkc = new global::System.Data.ForeignKeyConstraint("program_commands", new global::System.Data.DataColumn[] { this.tableprogram.program_IdColumn}, new global::System.Data.DataColumn[] { this.tablecommands.program_IdColumn}); this.tablecommands.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("commands_command", new global::System.Data.DataColumn[] { this.tablecommands.commands_IdColumn}, new global::System.Data.DataColumn[] { this.tablecommand.commands_IdColumn}); this.tablecommand.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.relationprogram_commands = new global::System.Data.DataRelation("program_commands", new global::System.Data.DataColumn[] { this.tableprogram.program_IdColumn}, new global::System.Data.DataColumn[] { this.tablecommands.program_IdColumn}, false); this.relationprogram_commands.Nested = true; this.Relations.Add(this.relationprogram_commands); this.relationcommands_command = new global::System.Data.DataRelation("commands_command", new global::System.Data.DataColumn[] { this.tablecommands.commands_IdColumn}, new global::System.Data.DataColumn[] { this.tablecommand.commands_IdColumn}, false); this.relationcommands_command.Nested = true; this.Relations.Add(this.relationcommands_command); }
internal programRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tableprogram = ((programDataTable)(this.Table)); }