internal void InitVars(bool initTable) { this.tablePart = ((PartDataTable)(base.Tables["Part"])); if ((initTable == true)) { if ((this.tablePart != null)) { this.tablePart.InitVars(); } } this.tableError = ((ErrorDataTable)(base.Tables["Error"])); if ((initTable == true)) { if ((this.tableError != null)) { this.tableError.InitVars(); } } this.tableSubstitution = ((SubstitutionDataTable)(base.Tables["Substitution"])); if ((initTable == true)) { if ((this.tableSubstitution != null)) { this.tableSubstitution.InitVars(); } } this.tablePartDescription = ((PartDescriptionDataTable)(base.Tables["PartDescription"])); if ((initTable == true)) { if ((this.tablePartDescription != null)) { this.tablePartDescription.InitVars(); } } this.relationPart_Substitution = this.Relations["Part_Substitution"]; }
private void InitClass() { this.DataSetName = "UnavailablePartData"; this.Prefix = ""; this.Namespace = "urn:schemas-marykay-com:unavailable-parts"; this.Locale = new global::System.Globalization.CultureInfo("en-US"); this.EnforceConstraints = true; this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tablePart = new PartDataTable(); base.Tables.Add(this.tablePart); this.tableError = new ErrorDataTable(); base.Tables.Add(this.tableError); this.tableSubstitution = new SubstitutionDataTable(); base.Tables.Add(this.tableSubstitution); this.tablePartDescription = new PartDescriptionDataTable(); base.Tables.Add(this.tablePartDescription); global::System.Data.ForeignKeyConstraint fkc; fkc = new global::System.Data.ForeignKeyConstraint("Part_Substitution", new global::System.Data.DataColumn[] { this.tablePart.FulfillmentLocationIDColumn, this.tablePart.PartIDColumn}, new global::System.Data.DataColumn[] { this.tableSubstitution.FulfillmentLocationIDColumn, this.tableSubstitution.SubstitutionPartIDColumn}); this.tableSubstitution.Constraints.Add(fkc); fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None; fkc.DeleteRule = global::System.Data.Rule.Cascade; fkc.UpdateRule = global::System.Data.Rule.Cascade; this.relationPart_Substitution = new global::System.Data.DataRelation("Part_Substitution", new global::System.Data.DataColumn[] { this.tablePart.FulfillmentLocationIDColumn, this.tablePart.PartIDColumn}, new global::System.Data.DataColumn[] { this.tableSubstitution.FulfillmentLocationIDColumn, this.tableSubstitution.SubstitutionPartIDColumn}, false); this.Relations.Add(this.relationPart_Substitution); }
internal PartDescriptionRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tablePartDescription = ((PartDescriptionDataTable)(this.Table)); }