private void InitClass() {
     this.DataSetName = "Mailbox";
     this.Prefix = "";
     this.Namespace = "http://tempuri.org/Mailbox.xsd";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableConfig = new ConfigDataTable();
     base.Tables.Add(this.tableConfig);
     this.tableContact = new ContactDataTable();
     base.Tables.Add(this.tableContact);
     this.tableFolder = new FolderDataTable();
     base.Tables.Add(this.tableFolder);
     this.tableMessage = new MessageDataTable();
     base.Tables.Add(this.tableMessage);
     this.tableMessageFromContacts = new MessageFromContactsDataTable();
     base.Tables.Add(this.tableMessageFromContacts);
     this.tableMessageToContacts = new MessageToContactsDataTable();
     base.Tables.Add(this.tableMessageToContacts);
     this.tableMessageCcContacts = new MessageCcContactsDataTable();
     base.Tables.Add(this.tableMessageCcContacts);
     this.tableMessageBccContacts = new MessageBccContactsDataTable();
     base.Tables.Add(this.tableMessageBccContacts);
     this.tableContent = new ContentDataTable();
     base.Tables.Add(this.tableContent);
     global::System.Data.ForeignKeyConstraint fkc;
     fkc = new global::System.Data.ForeignKeyConstraint("FK_Folder_Message", new global::System.Data.DataColumn[] {
                 this.tableFolder.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessage.FolderIDColumn});
     this.tableMessage.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_Message_MessageFromContacts", new global::System.Data.DataColumn[] {
                 this.tableMessage.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageFromContacts.MessageIDColumn});
     this.tableMessageFromContacts.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_Contact_MessageFromContacts", new global::System.Data.DataColumn[] {
                 this.tableContact.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageFromContacts.ContactIDColumn});
     this.tableMessageFromContacts.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_Message_MessageToContacts", new global::System.Data.DataColumn[] {
                 this.tableMessage.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageToContacts.MessageIDColumn});
     this.tableMessageToContacts.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_Contact_MessageToContacts", new global::System.Data.DataColumn[] {
                 this.tableContact.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageToContacts.ContactIDColumn});
     this.tableMessageToContacts.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_Message_MessageCcContacts", new global::System.Data.DataColumn[] {
                 this.tableMessage.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageCcContacts.MessageIDColumn});
     this.tableMessageCcContacts.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_Contact_MessageCcContacts", new global::System.Data.DataColumn[] {
                 this.tableContact.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageCcContacts.ContactIDColumn});
     this.tableMessageCcContacts.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_Message_MessageBccContacts", new global::System.Data.DataColumn[] {
                 this.tableMessage.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageBccContacts.MessageIDColumn});
     this.tableMessageBccContacts.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_Contact_MessageBccContacts", new global::System.Data.DataColumn[] {
                 this.tableContact.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageBccContacts.ContactIDColumn});
     this.tableMessageBccContacts.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_Message_Content", new global::System.Data.DataColumn[] {
                 this.tableMessage.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableContent.MessageIDColumn});
     this.tableContent.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_Folder_Message = new global::System.Data.DataRelation("FK_Folder_Message", new global::System.Data.DataColumn[] {
                 this.tableFolder.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessage.FolderIDColumn}, false);
     this.Relations.Add(this.relationFK_Folder_Message);
     this.relationFK_Message_MessageFromContacts = new global::System.Data.DataRelation("FK_Message_MessageFromContacts", new global::System.Data.DataColumn[] {
                 this.tableMessage.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageFromContacts.MessageIDColumn}, false);
     this.Relations.Add(this.relationFK_Message_MessageFromContacts);
     this.relationFK_Contact_MessageFromContacts = new global::System.Data.DataRelation("FK_Contact_MessageFromContacts", new global::System.Data.DataColumn[] {
                 this.tableContact.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageFromContacts.ContactIDColumn}, false);
     this.Relations.Add(this.relationFK_Contact_MessageFromContacts);
     this.relationFK_Message_MessageToContacts = new global::System.Data.DataRelation("FK_Message_MessageToContacts", new global::System.Data.DataColumn[] {
                 this.tableMessage.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageToContacts.MessageIDColumn}, false);
     this.Relations.Add(this.relationFK_Message_MessageToContacts);
     this.relationFK_Contact_MessageToContacts = new global::System.Data.DataRelation("FK_Contact_MessageToContacts", new global::System.Data.DataColumn[] {
                 this.tableContact.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageToContacts.ContactIDColumn}, false);
     this.Relations.Add(this.relationFK_Contact_MessageToContacts);
     this.relationFK_Message_MessageCcContacts = new global::System.Data.DataRelation("FK_Message_MessageCcContacts", new global::System.Data.DataColumn[] {
                 this.tableMessage.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageCcContacts.MessageIDColumn}, false);
     this.Relations.Add(this.relationFK_Message_MessageCcContacts);
     this.relationFK_Contact_MessageCcContacts = new global::System.Data.DataRelation("FK_Contact_MessageCcContacts", new global::System.Data.DataColumn[] {
                 this.tableContact.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageCcContacts.ContactIDColumn}, false);
     this.Relations.Add(this.relationFK_Contact_MessageCcContacts);
     this.relationFK_Message_MessageBccContacts = new global::System.Data.DataRelation("FK_Message_MessageBccContacts", new global::System.Data.DataColumn[] {
                 this.tableMessage.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageBccContacts.MessageIDColumn}, false);
     this.Relations.Add(this.relationFK_Message_MessageBccContacts);
     this.relationFK_Contact_MessageBccContacts = new global::System.Data.DataRelation("FK_Contact_MessageBccContacts", new global::System.Data.DataColumn[] {
                 this.tableContact.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableMessageBccContacts.ContactIDColumn}, false);
     this.Relations.Add(this.relationFK_Contact_MessageBccContacts);
     this.relationFK_Message_Content = new global::System.Data.DataRelation("FK_Message_Content", new global::System.Data.DataColumn[] {
                 this.tableMessage.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableContent.MessageIDColumn}, false);
     this.Relations.Add(this.relationFK_Message_Content);
     this.relationFK_Folder_Folder = new global::System.Data.DataRelation("FK_Folder_Folder", new global::System.Data.DataColumn[] {
                 this.tableFolder.IDColumn}, new global::System.Data.DataColumn[] {
                 this.tableFolder.ParentIDColumn}, false);
     this.Relations.Add(this.relationFK_Folder_Folder);
 }
 internal MessageFromContactsRow(global::System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableMessageFromContacts = ((MessageFromContactsDataTable)(this.Table));
 }
 internal void InitVars(bool initTable) {
     this.tableConfig = ((ConfigDataTable)(base.Tables["Config"]));
     if ((initTable == true)) {
         if ((this.tableConfig != null)) {
             this.tableConfig.InitVars();
         }
     }
     this.tableContact = ((ContactDataTable)(base.Tables["Contact"]));
     if ((initTable == true)) {
         if ((this.tableContact != null)) {
             this.tableContact.InitVars();
         }
     }
     this.tableFolder = ((FolderDataTable)(base.Tables["Folder"]));
     if ((initTable == true)) {
         if ((this.tableFolder != null)) {
             this.tableFolder.InitVars();
         }
     }
     this.tableMessage = ((MessageDataTable)(base.Tables["Message"]));
     if ((initTable == true)) {
         if ((this.tableMessage != null)) {
             this.tableMessage.InitVars();
         }
     }
     this.tableMessageFromContacts = ((MessageFromContactsDataTable)(base.Tables["MessageFromContacts"]));
     if ((initTable == true)) {
         if ((this.tableMessageFromContacts != null)) {
             this.tableMessageFromContacts.InitVars();
         }
     }
     this.tableMessageToContacts = ((MessageToContactsDataTable)(base.Tables["MessageToContacts"]));
     if ((initTable == true)) {
         if ((this.tableMessageToContacts != null)) {
             this.tableMessageToContacts.InitVars();
         }
     }
     this.tableMessageCcContacts = ((MessageCcContactsDataTable)(base.Tables["MessageCcContacts"]));
     if ((initTable == true)) {
         if ((this.tableMessageCcContacts != null)) {
             this.tableMessageCcContacts.InitVars();
         }
     }
     this.tableMessageBccContacts = ((MessageBccContactsDataTable)(base.Tables["MessageBccContacts"]));
     if ((initTable == true)) {
         if ((this.tableMessageBccContacts != null)) {
             this.tableMessageBccContacts.InitVars();
         }
     }
     this.tableContent = ((ContentDataTable)(base.Tables["Content"]));
     if ((initTable == true)) {
         if ((this.tableContent != null)) {
             this.tableContent.InitVars();
         }
     }
     this.relationFK_Folder_Message = this.Relations["FK_Folder_Message"];
     this.relationFK_Message_MessageFromContacts = this.Relations["FK_Message_MessageFromContacts"];
     this.relationFK_Contact_MessageFromContacts = this.Relations["FK_Contact_MessageFromContacts"];
     this.relationFK_Message_MessageToContacts = this.Relations["FK_Message_MessageToContacts"];
     this.relationFK_Contact_MessageToContacts = this.Relations["FK_Contact_MessageToContacts"];
     this.relationFK_Message_MessageCcContacts = this.Relations["FK_Message_MessageCcContacts"];
     this.relationFK_Contact_MessageCcContacts = this.Relations["FK_Contact_MessageCcContacts"];
     this.relationFK_Message_MessageBccContacts = this.Relations["FK_Message_MessageBccContacts"];
     this.relationFK_Contact_MessageBccContacts = this.Relations["FK_Contact_MessageBccContacts"];
     this.relationFK_Message_Content = this.Relations["FK_Message_Content"];
     this.relationFK_Folder_Folder = this.Relations["FK_Folder_Folder"];
 }