public override DataTable Clone() { TheirInvoicesDataTable cln = ((TheirInvoicesDataTable)(base.Clone())); cln.InitVars(); return(cln); }
private void InitClass() { this.DataSetName = "AnnotatedTDS"; this.Prefix = ""; this.Namespace = "http://tempuri.org/AnnotatedTDS"; this.Locale = new System.Globalization.CultureInfo("en-US"); this.CaseSensitive = false; this.EnforceConstraints = true; this.tableOurCustomers = new OurCustomersDataTable(); this.Tables.Add(this.tableOurCustomers); this.tableTheirInvoices = new TheirInvoicesDataTable(); this.Tables.Add(this.tableTheirInvoices); ForeignKeyConstraint fkc; fkc = new ForeignKeyConstraint("CustomerInvoice", new DataColumn[] { this.tableOurCustomers.CustomerIDColumn }, new DataColumn[] { this.tableTheirInvoices.CustomerIDColumn }); this.tableTheirInvoices.Constraints.Add(fkc); fkc.AcceptRejectRule = AcceptRejectRule.Cascade; fkc.DeleteRule = Rule.Cascade; fkc.UpdateRule = Rule.Cascade; this.relationCustomerInvoice = new DataRelation("CustomerInvoice", new DataColumn[] { this.tableOurCustomers.CustomerIDColumn }, new DataColumn[] { this.tableTheirInvoices.CustomerIDColumn }, false); this.Relations.Add(this.relationCustomerInvoice); }
internal void InitVars() { this.tableOurCustomers = ((OurCustomersDataTable)(this.Tables["Customer"])); if ((this.tableOurCustomers != null)) { this.tableOurCustomers.InitVars(); } this.tableTheirInvoices = ((TheirInvoicesDataTable)(this.Tables["Invoice"])); if ((this.tableTheirInvoices != null)) { this.tableTheirInvoices.InitVars(); } this.relationCustomerInvoice = this.Relations["CustomerInvoice"]; }
internal TheirInvoice(DataRowBuilder rb) : base(rb) { this.tableTheirInvoices = ((TheirInvoicesDataTable)(this.Table)); }