示例#1
0
 internal void InitVars(bool initTable) {
     this.tableFact = ((FactDataTable)(base.Tables["Fact"]));
     if ((initTable == true)) {
         if ((this.tableFact != null)) {
             this.tableFact.InitVars();
         }
     }
     this.tableWhat = ((WhatDataTable)(base.Tables["What"]));
     if ((initTable == true)) {
         if ((this.tableWhat != null)) {
             this.tableWhat.InitVars();
         }
     }
     this.tableWhere = ((WhereDataTable)(base.Tables["Where"]));
     if ((initTable == true)) {
         if ((this.tableWhere != null)) {
             this.tableWhere.InitVars();
         }
     }
     this.tableWhen = ((WhenDataTable)(base.Tables["When"]));
     if ((initTable == true)) {
         if ((this.tableWhen != null)) {
             this.tableWhen.InitVars();
         }
     }
     this.relationFK_What_Fact = this.Relations["FK_What_Fact"];
     this.relationFK_Where_Fact = this.Relations["FK_Where_Fact"];
     this.relationFK_When_Fact = this.Relations["FK_When_Fact"];
 }
示例#2
0
 private void InitClass() {
     this.DataSetName = "Facts";
     this.Prefix = "";
     this.Namespace = "urn:www.genetibase.com:Facts";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableFact = new FactDataTable();
     base.Tables.Add(this.tableFact);
     this.tableWhat = new WhatDataTable();
     base.Tables.Add(this.tableWhat);
     this.tableWhere = new WhereDataTable();
     base.Tables.Add(this.tableWhere);
     this.tableWhen = new WhenDataTable();
     base.Tables.Add(this.tableWhen);
     System.Data.ForeignKeyConstraint fkc;
     fkc = new System.Data.ForeignKeyConstraint("FK_What_Fact", new System.Data.DataColumn[] {
                 this.tableWhat.IDColumn}, new System.Data.DataColumn[] {
                 this.tableFact.WhatColumn});
     this.tableFact.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_Where_Fact", new System.Data.DataColumn[] {
                 this.tableWhere.IDColumn}, new System.Data.DataColumn[] {
                 this.tableFact.WhereColumn});
     this.tableFact.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_When_Fact", new System.Data.DataColumn[] {
                 this.tableWhen.IDColumn}, new System.Data.DataColumn[] {
                 this.tableFact.WhenColumn});
     this.tableFact.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     this.relationFK_What_Fact = new System.Data.DataRelation("FK_What_Fact", new System.Data.DataColumn[] {
                 this.tableWhat.IDColumn}, new System.Data.DataColumn[] {
                 this.tableFact.WhatColumn}, false);
     this.Relations.Add(this.relationFK_What_Fact);
     this.relationFK_Where_Fact = new System.Data.DataRelation("FK_Where_Fact", new System.Data.DataColumn[] {
                 this.tableWhere.IDColumn}, new System.Data.DataColumn[] {
                 this.tableFact.WhereColumn}, false);
     this.Relations.Add(this.relationFK_Where_Fact);
     this.relationFK_When_Fact = new System.Data.DataRelation("FK_When_Fact", new System.Data.DataColumn[] {
                 this.tableWhen.IDColumn}, new System.Data.DataColumn[] {
                 this.tableFact.WhenColumn}, false);
     this.Relations.Add(this.relationFK_When_Fact);
 }
示例#3
0
 internal WhereRow(System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableWhere = ((WhereDataTable)(this.Table));
 }