コード例 #1
0
            public override DataTable Clone()
            {
                StreetsDataTable cln = ((StreetsDataTable)(base.Clone()));

                cln.InitVars();
                return(cln);
            }
コード例 #2
0
 public void InitVars()
 {
     tableStreets = ((StreetsDataTable)(Tables["Streets"]));
     if ((tableStreets != null))
     {
         tableStreets.InitVars();
     }
 }
コード例 #3
0
 private void InitClass()
 {
     DataSetName        = "Map_Streets_DataSet";
     Prefix             = "";
     Namespace          = "";
     Locale             = new CultureInfo("en-US");
     CaseSensitive      = false;
     EnforceConstraints = true;
     tableStreets       = new StreetsDataTable();
     Tables.Add(tableStreets);
 }
コード例 #4
0
 private void InitClass()
 {
     this.DataSetName        = "Map_Streets_DataSet";
     this.Prefix             = "";
     this.Namespace          = "";
     this.Locale             = new System.Globalization.CultureInfo("en-US");
     this.CaseSensitive      = false;
     this.EnforceConstraints = true;
     this.tableStreets       = new StreetsDataTable();
     this.Tables.Add(this.tableStreets);
 }
コード例 #5
0
 public StreetsRow(DataRowBuilder rb) :
     base(rb)
 {
     tableStreets = ((StreetsDataTable)(Table));
 }
コード例 #6
0
 private void InitClass()
 {
     base.set_DataSetName("StreetsHousesFlatsDS");
     base.set_Prefix("");
     base.set_Namespace("http://tempuri.org/StreetsHousesFlatsDS.xsd");
     base.set_EnforceConstraints(true);
     this.set_SchemaSerializationMode(System.Data.SchemaSerializationMode.IncludeSchema);
     this.tableStreets = new StreetsDataTable();
     base.Tables.Add(this.tableStreets);
     this.tableHouses = new HousesDataTable();
     base.Tables.Add(this.tableHouses);
     this.tableFlats = new FlatsDataTable();
     base.Tables.Add(this.tableFlats);
     System.Data.ForeignKeyConstraint constraint = new System.Data.ForeignKeyConstraint("StreetsHouses", new System.Data.DataColumn[] { this.tableStreets.IdColumn }, new System.Data.DataColumn[] { this.tableHouses.ParentIdColumn });
     this.tableHouses.Constraints.Add(constraint);
     constraint.set_AcceptRejectRule(System.Data.AcceptRejectRule.None);
     constraint.set_DeleteRule(System.Data.Rule.Cascade);
     constraint.set_UpdateRule(System.Data.Rule.Cascade);
     this.relationStreetsHouses = new System.Data.DataRelation("StreetsHouses", new System.Data.DataColumn[] { this.tableStreets.IdColumn }, new System.Data.DataColumn[] { this.tableHouses.ParentIdColumn }, false);
     this.Relations.Add(this.relationStreetsHouses);
     this.relationHousesFlats = new System.Data.DataRelation("HousesFlats", new System.Data.DataColumn[] { this.tableHouses.IdColumn }, new System.Data.DataColumn[] { this.tableFlats.ParentIdColumn }, false);
     this.Relations.Add(this.relationHousesFlats);
 }
コード例 #7
0
 internal void InitVars(bool initTable)
 {
     this.tableStreets = (StreetsDataTable) base.Tables.get_Item("Streets");
     if (initTable && (this.tableStreets != null))
     {
         this.tableStreets.InitVars();
     }
     this.tableHouses = (HousesDataTable) base.Tables.get_Item("Houses");
     if (initTable && (this.tableHouses != null))
     {
         this.tableHouses.InitVars();
     }
     this.tableFlats = (FlatsDataTable) base.Tables.get_Item("Flats");
     if (initTable && (this.tableFlats != null))
     {
         this.tableFlats.InitVars();
     }
     this.relationStreetsHouses = this.Relations.get_Item("StreetsHouses");
     this.relationHousesFlats = this.Relations.get_Item("HousesFlats");
 }
コード例 #8
0
 public StreetsRow(DataRowBuilder rb) : 
         base(rb) {
     this.tableStreets = ((StreetsDataTable)(this.Table));
 }
コード例 #9
0
 private void InitClass() {
     this.DataSetName = "Map_Streets_DataSet";
     this.Prefix = "";
     this.Namespace = "";
     this.Locale = new System.Globalization.CultureInfo("en-US");
     this.CaseSensitive = false;
     this.EnforceConstraints = true;
     this.tableStreets = new StreetsDataTable();
     this.Tables.Add(this.tableStreets);
 }
コード例 #10
0
 public void InitVars() {
     this.tableStreets = ((StreetsDataTable)(this.Tables["Streets"]));
     if ((this.tableStreets != null)) {
         this.tableStreets.InitVars();
     }
 }