internal void InitVars(bool initTable) { this.tableCountry = ((CountryDataTable)(base.Tables["Country"])); if ((initTable == true)) { if ((this.tableCountry != null)) { this.tableCountry.InitVars(); } } this.tableState = ((StateDataTable)(base.Tables["State"])); if ((initTable == true)) { if ((this.tableState != null)) { this.tableState.InitVars(); } } this.tableContinent = ((ContinentDataTable)(base.Tables["Continent"])); if ((initTable == true)) { if ((this.tableContinent != null)) { this.tableContinent.InitVars(); } } this.tableTimezone = ((TimezoneDataTable)(base.Tables["Timezone"])); if ((initTable == true)) { if ((this.tableTimezone != null)) { this.tableTimezone.InitVars(); } } this.tableCity = ((CityDataTable)(base.Tables["City"])); if ((initTable == true)) { if ((this.tableCity != null)) { this.tableCity.InitVars(); } } this.relationFK_Continent_Country_Continent_ID = this.Relations["FK_Continent_Country_Continent_ID"]; this.relationFK_Country_State_Country_ID = this.Relations["FK_Country_State_Country_ID"]; this.relationFK_Timezone_City_Timezone_ID = this.Relations["FK_Timezone_City_Timezone_ID"]; this.relationFK_State_City_State_ID = this.Relations["FK_State_City_State_ID"]; }
private void InitClass() { this.DataSetName = "dsWT"; this.Prefix = ""; this.Namespace = "http://tempuri.org/dsWT.xsd"; this.EnforceConstraints = true; this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; this.tableCountry = new CountryDataTable(); base.Tables.Add(this.tableCountry); this.tableState = new StateDataTable(); base.Tables.Add(this.tableState); this.tableContinent = new ContinentDataTable(); base.Tables.Add(this.tableContinent); this.tableTimezone = new TimezoneDataTable(); base.Tables.Add(this.tableTimezone); this.tableCity = new CityDataTable(); base.Tables.Add(this.tableCity); System.Data.ForeignKeyConstraint fkc; fkc = new System.Data.ForeignKeyConstraint("FK_Continent_Country_Continent_ID", new System.Data.DataColumn[] { this.tableContinent.Continent_IDColumn}, new System.Data.DataColumn[] { this.tableCountry.Continent_IDColumn}); this.tableCountry.Constraints.Add(fkc); fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; fkc.DeleteRule = System.Data.Rule.Cascade; fkc.UpdateRule = System.Data.Rule.Cascade; fkc = new System.Data.ForeignKeyConstraint("FK_Country_State_Country_ID", new System.Data.DataColumn[] { this.tableCountry.Country_IDColumn}, new System.Data.DataColumn[] { this.tableState.Country_IDColumn}); this.tableState.Constraints.Add(fkc); fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; fkc.DeleteRule = System.Data.Rule.Cascade; fkc.UpdateRule = System.Data.Rule.Cascade; fkc = new System.Data.ForeignKeyConstraint("FK_Timezone_City_Timezone_ID", new System.Data.DataColumn[] { this.tableTimezone.Timezone_IDColumn}, new System.Data.DataColumn[] { this.tableCity.Timezone_IDColumn}); this.tableCity.Constraints.Add(fkc); fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; fkc.DeleteRule = System.Data.Rule.Cascade; fkc.UpdateRule = System.Data.Rule.Cascade; fkc = new System.Data.ForeignKeyConstraint("FK_State_City_State_ID", new System.Data.DataColumn[] { this.tableState.State_IDColumn}, new System.Data.DataColumn[] { this.tableCity.State_IDColumn}); this.tableCity.Constraints.Add(fkc); fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; fkc.DeleteRule = System.Data.Rule.Cascade; fkc.UpdateRule = System.Data.Rule.Cascade; this.relationFK_Continent_Country_Continent_ID = new System.Data.DataRelation("FK_Continent_Country_Continent_ID", new System.Data.DataColumn[] { this.tableContinent.Continent_IDColumn}, new System.Data.DataColumn[] { this.tableCountry.Continent_IDColumn}, false); this.Relations.Add(this.relationFK_Continent_Country_Continent_ID); this.relationFK_Country_State_Country_ID = new System.Data.DataRelation("FK_Country_State_Country_ID", new System.Data.DataColumn[] { this.tableCountry.Country_IDColumn}, new System.Data.DataColumn[] { this.tableState.Country_IDColumn}, false); this.Relations.Add(this.relationFK_Country_State_Country_ID); this.relationFK_Timezone_City_Timezone_ID = new System.Data.DataRelation("FK_Timezone_City_Timezone_ID", new System.Data.DataColumn[] { this.tableTimezone.Timezone_IDColumn}, new System.Data.DataColumn[] { this.tableCity.Timezone_IDColumn}, false); this.Relations.Add(this.relationFK_Timezone_City_Timezone_ID); this.relationFK_State_City_State_ID = new System.Data.DataRelation("FK_State_City_State_ID", new System.Data.DataColumn[] { this.tableState.State_IDColumn}, new System.Data.DataColumn[] { this.tableCity.State_IDColumn}, false); this.Relations.Add(this.relationFK_State_City_State_ID); }
internal ContinentRow(System.Data.DataRowBuilder rb) : base(rb) { this.tableContinent = ((ContinentDataTable)(this.Table)); }