private void InitClass() { this.DataSetName = "ProvidersInfo"; this.Prefix = ""; this.Namespace = "http://tempuri.org/ProviderInfo.xsd"; this.Locale = new System.Globalization.CultureInfo("en-US"); this.CaseSensitive = false; this.EnforceConstraints = false; this.tableProviderInfo = new ProviderInfoDataTable(); this.Tables.Add(this.tableProviderInfo); this.tableType = new TypeDataTable(); this.Tables.Add(this.tableType); ForeignKeyConstraint fkc; fkc = new ForeignKeyConstraint("ProviderInfo_Type", new DataColumn[] { this.tableProviderInfo.ProviderInfo_IdColumn}, new DataColumn[] { this.tableType.ProviderInfo_IdColumn}); this.tableType.Constraints.Add(fkc); fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; fkc.DeleteRule = System.Data.Rule.Cascade; fkc.UpdateRule = System.Data.Rule.Cascade; this.relationProviderInfo_Type = new DataRelation("ProviderInfo_Type", new DataColumn[] { this.tableProviderInfo.ProviderInfo_IdColumn}, new DataColumn[] { this.tableType.ProviderInfo_IdColumn}, false); this.relationProviderInfo_Type.Nested = true; this.Relations.Add(this.relationProviderInfo_Type); }
internal ProviderInfoRow(DataRowBuilder rb) : base(rb) { this.tableProviderInfo = ((ProviderInfoDataTable)(this.Table)); }
internal void InitVars() { this.tableProviderInfo = ((ProviderInfoDataTable)(this.Tables["ProviderInfo"])); if ((this.tableProviderInfo != null)) { this.tableProviderInfo.InitVars(); } this.tableType = ((TypeDataTable)(this.Tables["Type"])); if ((this.tableType != null)) { this.tableType.InitVars(); } this.relationProviderInfo_Type = this.Relations["ProviderInfo_Type"]; }