public override DataTable Clone() { TERRITORYDataTable cln = ((TERRITORYDataTable)(base.Clone())); cln.InitVars(); return(cln); }
internal void InitVars() { this.tableCITY = ((CITYDataTable)(this.Tables["CITY"])); if ((this.tableCITY != null)) { this.tableCITY.InitVars(); } this.tableTERRITORY = ((TERRITORYDataTable)(this.Tables["TERRITORY"])); if ((this.tableTERRITORY != null)) { this.tableTERRITORY.InitVars(); } this.relationTERRITORY_CITY_CITY_NAME_ID = this.Relations["TERRITORY_CITY_CITY_NAME_ID"]; this.relationTERRITORY_CITY_COUNTRY_ID = this.Relations["TERRITORY_CITY_COUNTRY_ID"]; }
private void InitClass() { this.DataSetName = "DataSet1"; this.Prefix = ""; this.Namespace = "http://www.tempuri.org/DataSet1.xsd"; this.Locale = new System.Globalization.CultureInfo("ru-RU"); this.CaseSensitive = false; this.EnforceConstraints = true; this.tableCITY = new CITYDataTable(); this.Tables.Add(this.tableCITY); this.tableTERRITORY = new TERRITORYDataTable(); this.Tables.Add(this.tableTERRITORY); ForeignKeyConstraint fkc; fkc = new ForeignKeyConstraint("TERRITORY_CITY_CITY_NAME_ID", new DataColumn[] { this.tableTERRITORY.TERRITORY_IDColumn }, new DataColumn[] { this.tableCITY.CITY_NAME_IDColumn }); this.tableCITY.Constraints.Add(fkc); fkc.AcceptRejectRule = System.Data.AcceptRejectRule.Cascade; fkc.DeleteRule = System.Data.Rule.Cascade; fkc.UpdateRule = System.Data.Rule.Cascade; fkc = new ForeignKeyConstraint("TERRITORY_CITY_COUNTRY_ID", new DataColumn[] { this.tableTERRITORY.TERRITORY_IDColumn }, new DataColumn[] { this.tableCITY.COUNTRY_IDColumn }); this.tableCITY.Constraints.Add(fkc); fkc.AcceptRejectRule = System.Data.AcceptRejectRule.Cascade; fkc.DeleteRule = System.Data.Rule.Cascade; fkc.UpdateRule = System.Data.Rule.Cascade; this.relationTERRITORY_CITY_CITY_NAME_ID = new DataRelation("TERRITORY_CITY_CITY_NAME_ID", new DataColumn[] { this.tableTERRITORY.TERRITORY_IDColumn }, new DataColumn[] { this.tableCITY.CITY_NAME_IDColumn }, false); this.Relations.Add(this.relationTERRITORY_CITY_CITY_NAME_ID); this.relationTERRITORY_CITY_COUNTRY_ID = new DataRelation("TERRITORY_CITY_COUNTRY_ID", new DataColumn[] { this.tableTERRITORY.TERRITORY_IDColumn }, new DataColumn[] { this.tableCITY.COUNTRY_IDColumn }, false); this.Relations.Add(this.relationTERRITORY_CITY_COUNTRY_ID); }
internal TERRITORYRow(DataRowBuilder rb) : base(rb) { this.tableTERRITORY = ((TERRITORYDataTable)(this.Table)); }