public override DataTable Clone() { ThreadDataTable cln = ((ThreadDataTable)(base.Clone())); cln.InitVars(); return(cln); }
private void InitClass() { this.DataSetName = "ThreadData"; this.Prefix = ""; this.Namespace = "http://tempuri.org/ThreadData.xsd"; this.Locale = new System.Globalization.CultureInfo("en-US"); this.CaseSensitive = false; this.EnforceConstraints = true; this.tableThread = new ThreadDataTable(); this.Tables.Add(this.tableThread); ForeignKeyConstraint fkc; fkc = new ForeignKeyConstraint("ThreadThread", new DataColumn[] { this.tableThread.IdColumn }, new DataColumn[] { this.tableThread.ParentColumn }); this.tableThread.Constraints.Add(fkc); fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; fkc.DeleteRule = System.Data.Rule.Cascade; fkc.UpdateRule = System.Data.Rule.Cascade; this.relationThreadThread = new DataRelation("ThreadThread", new DataColumn[] { this.tableThread.IdColumn }, new DataColumn[] { this.tableThread.ParentColumn }, false); this.Relations.Add(this.relationThreadThread); }
public void InitVars() { this.tableThread = ((ThreadDataTable)(this.Tables["Thread"])); if ((this.tableThread != null)) { this.tableThread.InitVars(); } this.relationThreadThread = this.Relations["ThreadThread"]; }
public ThreadRow(DataRowBuilder rb) : base(rb) { this.tableThread = ((ThreadDataTable)(this.Table)); }
private void InitClass() { this.DataSetName = "ThreadData"; this.Prefix = ""; this.Namespace = "http://tempuri.org/ThreadData.xsd"; this.Locale = new System.Globalization.CultureInfo("en-US"); this.CaseSensitive = false; this.EnforceConstraints = true; this.tableThread = new ThreadDataTable(); this.Tables.Add(this.tableThread); ForeignKeyConstraint fkc; fkc = new ForeignKeyConstraint("ThreadThread", new DataColumn[] { this.tableThread.IdColumn}, new DataColumn[] { this.tableThread.ParentColumn}); this.tableThread.Constraints.Add(fkc); fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; fkc.DeleteRule = System.Data.Rule.Cascade; fkc.UpdateRule = System.Data.Rule.Cascade; this.relationThreadThread = new DataRelation("ThreadThread", new DataColumn[] { this.tableThread.IdColumn}, new DataColumn[] { this.tableThread.ParentColumn}, false); this.Relations.Add(this.relationThreadThread); }