internal void InitVars(bool initTable) {
     this.tableContacts = ((ContactsDataTable)(base.Tables["Contacts"]));
     if ((initTable == true)) {
         if ((this.tableContacts != null)) {
             this.tableContacts.InitVars();
         }
     }
     this.tableVisits = ((VisitsDataTable)(base.Tables["Visits"]));
     if ((initTable == true)) {
         if ((this.tableVisits != null)) {
             this.tableVisits.InitVars();
         }
     }
     this.relationReference = this.Relations["Reference"];
 }
 private void InitClass() {
     this.DataSetName = "FbcFoodBankDataSet";
     this.Prefix = "";
     this.Namespace = "http://tempuri.org/FbcFoodBankDataSet.xsd";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableContacts = new ContactsDataTable();
     base.Tables.Add(this.tableContacts);
     this.tableVisits = new VisitsDataTable();
     base.Tables.Add(this.tableVisits);
     System.Data.ForeignKeyConstraint fkc;
     fkc = new System.Data.ForeignKeyConstraint("Reference", new System.Data.DataColumn[] {
                 this.tableContacts.NameColumn}, new System.Data.DataColumn[] {
                 this.tableVisits.NameColumn});
     this.tableVisits.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.Cascade;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     this.relationReference = new System.Data.DataRelation("Reference", new System.Data.DataColumn[] {
                 this.tableContacts.NameColumn}, new System.Data.DataColumn[] {
                 this.tableVisits.NameColumn}, false);
     this.Relations.Add(this.relationReference);
 }
 internal VisitsRow(System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableVisits = ((VisitsDataTable)(this.Table));
 }