コード例 #1
0
 private void InitClass() {
     this.DataSetName = "XsdDataBase";
     this.Prefix = "";
     this.Namespace = "http://tempuri.org/XsdDataBase.xsd";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableTBL_Object = new TBL_ObjectDataTable();
     base.Tables.Add(this.tableTBL_Object);
     this.tableTBL_Field = new TBL_FieldDataTable();
     base.Tables.Add(this.tableTBL_Field);
     this.tableTBL_Connection = new TBL_ConnectionDataTable();
     base.Tables.Add(this.tableTBL_Connection);
     this.tableTBL_Relation = new TBL_RelationDataTable();
     base.Tables.Add(this.tableTBL_Relation);
     this.tableTBL_Generic_Type = new TBL_Generic_TypeDataTable();
     base.Tables.Add(this.tableTBL_Generic_Type);
     this.tableTBL_Filter = new TBL_FilterDataTable();
     base.Tables.Add(this.tableTBL_Filter);
     this.tableTBL_Filter_Field = new TBL_Filter_FieldDataTable();
     base.Tables.Add(this.tableTBL_Filter_Field);
     this.tableTBL_SP_Return = new TBL_SP_ReturnDataTable();
     base.Tables.Add(this.tableTBL_SP_Return);
     this.tableTBL_Catalog = new TBL_CatalogDataTable();
     base.Tables.Add(this.tableTBL_Catalog);
     this.tableTBL_Schema = new TBL_SchemaDataTable();
     base.Tables.Add(this.tableTBL_Schema);
     global::System.Data.ForeignKeyConstraint fkc;
     fkc = new global::System.Data.ForeignKeyConstraint("FK_TBL_Object_TBL_Field", new global::System.Data.DataColumn[] {
                 this.tableTBL_Object.id_ObjectColumn}, new global::System.Data.DataColumn[] {
                 this.tableTBL_Field.fk_ObjectColumn});
     this.tableTBL_Field.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("FK_TBL_Field_TBL_Relation", new global::System.Data.DataColumn[] {
                 this.tableTBL_Field.id_FieldColumn}, new global::System.Data.DataColumn[] {
                 this.tableTBL_Relation.fk_FieldColumn});
     this.tableTBL_Relation.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("FK_TBL_Connection_TBL_Generic_Type", new global::System.Data.DataColumn[] {
                 this.tableTBL_Connection.id_ConnectionColumn}, new global::System.Data.DataColumn[] {
                 this.tableTBL_Generic_Type.fk_ConnectionColumn});
     this.tableTBL_Generic_Type.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("FK_TBL_Object_TBL_Object_Find", new global::System.Data.DataColumn[] {
                 this.tableTBL_Object.id_ObjectColumn}, new global::System.Data.DataColumn[] {
                 this.tableTBL_Filter.fk_ObjectColumn});
     this.tableTBL_Filter.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("FK_TBL_Filter_TBL_Filter_Field", new global::System.Data.DataColumn[] {
                 this.tableTBL_Filter.id_FilterColumn}, new global::System.Data.DataColumn[] {
                 this.tableTBL_Filter_Field.fk_FilterColumn});
     this.tableTBL_Filter_Field.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("FK_TBL_Object_TBL_SP_Return1", new global::System.Data.DataColumn[] {
                 this.tableTBL_Object.id_ObjectColumn}, new global::System.Data.DataColumn[] {
                 this.tableTBL_SP_Return.fk_ObjectColumn});
     this.tableTBL_SP_Return.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.relationFK_TBL_Object_TBL_Field = new global::System.Data.DataRelation("FK_TBL_Object_TBL_Field", new global::System.Data.DataColumn[] {
                 this.tableTBL_Object.id_ObjectColumn}, new global::System.Data.DataColumn[] {
                 this.tableTBL_Field.fk_ObjectColumn}, false);
     this.Relations.Add(this.relationFK_TBL_Object_TBL_Field);
     this.relationFK_TBL_Field_TBL_Relation = new global::System.Data.DataRelation("FK_TBL_Field_TBL_Relation", new global::System.Data.DataColumn[] {
                 this.tableTBL_Field.id_FieldColumn}, new global::System.Data.DataColumn[] {
                 this.tableTBL_Relation.fk_FieldColumn}, false);
     this.Relations.Add(this.relationFK_TBL_Field_TBL_Relation);
     this.relationFK_TBL_Connection_TBL_Generic_Type = new global::System.Data.DataRelation("FK_TBL_Connection_TBL_Generic_Type", new global::System.Data.DataColumn[] {
                 this.tableTBL_Connection.id_ConnectionColumn}, new global::System.Data.DataColumn[] {
                 this.tableTBL_Generic_Type.fk_ConnectionColumn}, false);
     this.Relations.Add(this.relationFK_TBL_Connection_TBL_Generic_Type);
     this.relationFK_TBL_Object_TBL_Object_Find = new global::System.Data.DataRelation("FK_TBL_Object_TBL_Object_Find", new global::System.Data.DataColumn[] {
                 this.tableTBL_Object.id_ObjectColumn}, new global::System.Data.DataColumn[] {
                 this.tableTBL_Filter.fk_ObjectColumn}, false);
     this.Relations.Add(this.relationFK_TBL_Object_TBL_Object_Find);
     this.relationFK_TBL_Filter_TBL_Filter_Field = new global::System.Data.DataRelation("FK_TBL_Filter_TBL_Filter_Field", new global::System.Data.DataColumn[] {
                 this.tableTBL_Filter.id_FilterColumn}, new global::System.Data.DataColumn[] {
                 this.tableTBL_Filter_Field.fk_FilterColumn}, false);
     this.Relations.Add(this.relationFK_TBL_Filter_TBL_Filter_Field);
     this.relationFK_TBL_Object_TBL_SP_Return1 = new global::System.Data.DataRelation("FK_TBL_Object_TBL_SP_Return1", new global::System.Data.DataColumn[] {
                 this.tableTBL_Object.id_ObjectColumn}, new global::System.Data.DataColumn[] {
                 this.tableTBL_SP_Return.fk_ObjectColumn}, false);
     this.Relations.Add(this.relationFK_TBL_Object_TBL_SP_Return1);
     this.relationFK_TBL_Generic_Type_TBL_Object = new global::System.Data.DataRelation("FK_TBL_Generic_Type_TBL_Object", new global::System.Data.DataColumn[] {
                 this.tableTBL_Generic_Type.fk_ConnectionColumn,
                 this.tableTBL_Generic_Type.Generic_TypeColumn}, new global::System.Data.DataColumn[] {
                 this.tableTBL_Object.fk_ConnectionColumn,
                 this.tableTBL_Object.Generic_TypeColumn}, false);
     this.Relations.Add(this.relationFK_TBL_Generic_Type_TBL_Object);
 }
コード例 #2
0
 internal TBL_ConnectionRow(global::System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableTBL_Connection = ((TBL_ConnectionDataTable)(this.Table));
 }
コード例 #3
0
 internal void InitVars(bool initTable) {
     this.tableTBL_Object = ((TBL_ObjectDataTable)(base.Tables["TBL_Object"]));
     if ((initTable == true)) {
         if ((this.tableTBL_Object != null)) {
             this.tableTBL_Object.InitVars();
         }
     }
     this.tableTBL_Field = ((TBL_FieldDataTable)(base.Tables["TBL_Field"]));
     if ((initTable == true)) {
         if ((this.tableTBL_Field != null)) {
             this.tableTBL_Field.InitVars();
         }
     }
     this.tableTBL_Connection = ((TBL_ConnectionDataTable)(base.Tables["TBL_Connection"]));
     if ((initTable == true)) {
         if ((this.tableTBL_Connection != null)) {
             this.tableTBL_Connection.InitVars();
         }
     }
     this.tableTBL_Relation = ((TBL_RelationDataTable)(base.Tables["TBL_Relation"]));
     if ((initTable == true)) {
         if ((this.tableTBL_Relation != null)) {
             this.tableTBL_Relation.InitVars();
         }
     }
     this.tableTBL_Generic_Type = ((TBL_Generic_TypeDataTable)(base.Tables["TBL_Generic_Type"]));
     if ((initTable == true)) {
         if ((this.tableTBL_Generic_Type != null)) {
             this.tableTBL_Generic_Type.InitVars();
         }
     }
     this.tableTBL_Filter = ((TBL_FilterDataTable)(base.Tables["TBL_Filter"]));
     if ((initTable == true)) {
         if ((this.tableTBL_Filter != null)) {
             this.tableTBL_Filter.InitVars();
         }
     }
     this.tableTBL_Filter_Field = ((TBL_Filter_FieldDataTable)(base.Tables["TBL_Filter_Field"]));
     if ((initTable == true)) {
         if ((this.tableTBL_Filter_Field != null)) {
             this.tableTBL_Filter_Field.InitVars();
         }
     }
     this.tableTBL_SP_Return = ((TBL_SP_ReturnDataTable)(base.Tables["TBL_SP_Return"]));
     if ((initTable == true)) {
         if ((this.tableTBL_SP_Return != null)) {
             this.tableTBL_SP_Return.InitVars();
         }
     }
     this.tableTBL_Catalog = ((TBL_CatalogDataTable)(base.Tables["TBL_Catalog"]));
     if ((initTable == true)) {
         if ((this.tableTBL_Catalog != null)) {
             this.tableTBL_Catalog.InitVars();
         }
     }
     this.tableTBL_Schema = ((TBL_SchemaDataTable)(base.Tables["TBL_Schema"]));
     if ((initTable == true)) {
         if ((this.tableTBL_Schema != null)) {
             this.tableTBL_Schema.InitVars();
         }
     }
     this.relationFK_TBL_Object_TBL_Field = this.Relations["FK_TBL_Object_TBL_Field"];
     this.relationFK_TBL_Field_TBL_Relation = this.Relations["FK_TBL_Field_TBL_Relation"];
     this.relationFK_TBL_Connection_TBL_Generic_Type = this.Relations["FK_TBL_Connection_TBL_Generic_Type"];
     this.relationFK_TBL_Object_TBL_Object_Find = this.Relations["FK_TBL_Object_TBL_Object_Find"];
     this.relationFK_TBL_Filter_TBL_Filter_Field = this.Relations["FK_TBL_Filter_TBL_Filter_Field"];
     this.relationFK_TBL_Object_TBL_SP_Return1 = this.Relations["FK_TBL_Object_TBL_SP_Return1"];
     this.relationFK_TBL_Generic_Type_TBL_Object = this.Relations["FK_TBL_Generic_Type_TBL_Object"];
 }