private void InitClass() { this.DataSetName = "dsTest"; this.Prefix = ""; this.Namespace = "Deverest.XGoF.PlugIn.DataLayer.Generated"; this.Locale = new System.Globalization.CultureInfo("en-US"); this.CaseSensitive = false; this.EnforceConstraints = true; this.tablepublishers = new publishersDataTable(); this.Tables.Add(this.tablepublishers); this.tabletitles = new titlesDataTable(); this.Tables.Add(this.tabletitles); ForeignKeyConstraint fkc; fkc = new ForeignKeyConstraint("publisherstitles", new DataColumn[] { this.tablepublishers.pub_idColumn }, new DataColumn[] { this.tabletitles.pub_idColumn }); this.tabletitles.Constraints.Add(fkc); fkc.AcceptRejectRule = AcceptRejectRule.None; fkc.DeleteRule = Rule.Cascade; fkc.UpdateRule = Rule.Cascade; this.relationpublisherstitles = new DataRelation("publisherstitles", new DataColumn[] { this.tablepublishers.pub_idColumn }, new DataColumn[] { this.tabletitles.pub_idColumn }, false); this.Relations.Add(this.relationpublisherstitles); }
public override DataTable Clone() { publishersDataTable cln = ((publishersDataTable)(base.Clone())); cln.InitVars(); return(cln); }
internal void InitVars() { this.tablepublishers = ((publishersDataTable)(this.Tables["publishers"])); if ((this.tablepublishers != null)) { this.tablepublishers.InitVars(); } this.tabletitles = ((titlesDataTable)(this.Tables["titles"])); if ((this.tabletitles != null)) { this.tabletitles.InitVars(); } this.relationpublisherstitles = this.Relations["publisherstitles"]; }
internal publishersRow(DataRowBuilder rb) : base(rb) { this.tablepublishers = ((publishersDataTable)(this.Table)); }