public override DataTable Clone() { SortProfileTerminalTableDataTable cln = ((SortProfileTerminalTableDataTable)(base.Clone())); cln.InitVars(); return(cln); }
private void InitClass() { this.DataSetName = "SortProfileDS"; this.Prefix = ""; this.Namespace = "http://www.tempuri.org/SortProfileDS.xsd"; this.Locale = new System.Globalization.CultureInfo("en-US"); this.CaseSensitive = false; this.EnforceConstraints = true; this.tableSortProfileTable = new SortProfileTableDataTable(); this.Tables.Add(this.tableSortProfileTable); this.tableSortProfileTerminalTable = new SortProfileTerminalTableDataTable(); this.Tables.Add(this.tableSortProfileTerminalTable); ForeignKeyConstraint fkc; fkc = new ForeignKeyConstraint("SortProfileTable_SortProfileTerminalTable", new DataColumn[] { this.tableSortProfileTable.SortProfileTable_IdColumn }, new DataColumn[] { this.tableSortProfileTerminalTable.SortProfileTable_IdColumn }); this.tableSortProfileTerminalTable.Constraints.Add(fkc); fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; fkc.DeleteRule = System.Data.Rule.Cascade; fkc.UpdateRule = System.Data.Rule.Cascade; this.relationSortProfileTable_SortProfileTerminalTable = new DataRelation("SortProfileTable_SortProfileTerminalTable", new DataColumn[] { this.tableSortProfileTable.SortProfileTable_IdColumn }, new DataColumn[] { this.tableSortProfileTerminalTable.SortProfileTable_IdColumn }, false); this.relationSortProfileTable_SortProfileTerminalTable.Nested = true; this.Relations.Add(this.relationSortProfileTable_SortProfileTerminalTable); }
internal void InitVars() { this.tableSortProfileTable = ((SortProfileTableDataTable)(this.Tables["SortProfileTable"])); if ((this.tableSortProfileTable != null)) { this.tableSortProfileTable.InitVars(); } this.tableSortProfileTerminalTable = ((SortProfileTerminalTableDataTable)(this.Tables["SortProfileTerminalTable"])); if ((this.tableSortProfileTerminalTable != null)) { this.tableSortProfileTerminalTable.InitVars(); } this.relationSortProfileTable_SortProfileTerminalTable = this.Relations["SortProfileTable_SortProfileTerminalTable"]; }
internal SortProfileTerminalTableRow(DataRowBuilder rb) : base(rb) { this.tableSortProfileTerminalTable = ((SortProfileTerminalTableDataTable)(this.Table)); }