private void InitClass() { this.DataSetName = "_DataSet"; this.Prefix = ""; this.Namespace = "http://opcfoundation.org/Hda/1.2/"; this.Locale = new System.Globalization.CultureInfo("en-US"); this.CaseSensitive = false; this.EnforceConstraints = true; this.tableTestCases_ = new TestCasesDataTable(); this.Tables.Add(this.tableTestCases_); this.tableItemValues_ = new ItemValuesDataTable(); this.Tables.Add(this.tableItemValues_); ForeignKeyConstraint fkc; fkc = new ForeignKeyConstraint("TestCase_ItemValue", new DataColumn[] { this.tableTestCases_.TestCaseIdColumn }, new DataColumn[] { this.tableItemValues_.TestCaseIdColumn }); this.tableItemValues_.Constraints.Add(fkc); fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; fkc.DeleteRule = System.Data.Rule.Cascade; fkc.UpdateRule = System.Data.Rule.Cascade; this.relationTestCaseItemValue_ = new DataRelation("TestCase_ItemValue", new DataColumn[] { this.tableTestCases_.TestCaseIdColumn }, new DataColumn[] { this.tableItemValues_.TestCaseIdColumn }, false); this.relationTestCaseItemValue_.Nested = true; this.Relations.Add(this.relationTestCaseItemValue_); }
public override DataTable Clone() { TestCasesDataTable cln = ((TestCasesDataTable)(base.Clone())); cln.InitVars(); return(cln); }
internal void InitVars() { this.tableTestCases_ = ((TestCasesDataTable)(this.Tables["TestCase"])); if ((this.tableTestCases_ != null)) { this.tableTestCases_.InitVars(); } this.tableItemValues_ = ((ItemValuesDataTable)(this.Tables["TsCHdaItemValue"])); if ((this.tableItemValues_ != null)) { this.tableItemValues_.InitVars(); } this.relationTestCaseItemValue_ = this.Relations["TestCase_ItemValue"]; }
internal TestCase(DataRowBuilder rb) : base(rb) { this.tableTestCases_ = ((TestCasesDataTable)(this.Table)); }