Ejemplo n.º 1
0
 private void InitClass() {
     this.DataSetName = "VCFDataSet";
     this.Prefix = "";
     this.Namespace = "http://tempuri.org/VCFDataSet.xsd";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableCity = new CityDataTable();
     base.Tables.Add(this.tableCity);
     this.tableDonation = new DonationDataTable();
     base.Tables.Add(this.tableDonation);
     this.tableUser = new UserDataTable();
     base.Tables.Add(this.tableUser);
     this.tableProject = new ProjectDataTable();
     base.Tables.Add(this.tableProject);
     this.tableDistribution = new DistributionDataTable();
     base.Tables.Add(this.tableDistribution);
     this.tableV_Distribution_Project = new V_Distribution_ProjectDataTable();
     base.Tables.Add(this.tableV_Distribution_Project);
     this.tableV_User_Distribution_Project = new V_User_Distribution_ProjectDataTable();
     base.Tables.Add(this.tableV_User_Distribution_Project);
     this.tableV_FormatedUser = new V_FormatedUserDataTable();
     base.Tables.Add(this.tableV_FormatedUser);
     this.tableUserRelationShip = new UserRelationShipDataTable();
     base.Tables.Add(this.tableUserRelationShip);
     this.tableV_ProjectNameAndID = new V_ProjectNameAndIDDataTable();
     base.Tables.Add(this.tableV_ProjectNameAndID);
     this.relationFK_User_User = new System.Data.DataRelation("FK_User_User", new System.Data.DataColumn[] {
                 this.tableUser.UserIDColumn}, new System.Data.DataColumn[] {
                 this.tableUser.FatherUserIDColumn}, false);
     this.Relations.Add(this.relationFK_User_User);
     this.relationFK_Donation_User = new System.Data.DataRelation("FK_Donation_User", new System.Data.DataColumn[] {
                 this.tableUser.UserIDColumn}, new System.Data.DataColumn[] {
                 this.tableDonation.DonationUserIDColumn}, false);
     this.Relations.Add(this.relationFK_Donation_User);
     this.relationFK_Donation_Project = new System.Data.DataRelation("FK_Donation_Project", new System.Data.DataColumn[] {
                 this.tableProject.ProjectIDColumn}, new System.Data.DataColumn[] {
                 this.tableDonation.ProjectIDColumn}, false);
     this.Relations.Add(this.relationFK_Donation_Project);
     this.relationFK_Project_Project = new System.Data.DataRelation("FK_Project_Project", new System.Data.DataColumn[] {
                 this.tableUser.UserIDColumn}, new System.Data.DataColumn[] {
                 this.tableProject.ManagerIDColumn}, false);
     this.Relations.Add(this.relationFK_Project_Project);
     this.relationFK_Distribution_Project = new System.Data.DataRelation("FK_Distribution_Project", new System.Data.DataColumn[] {
                 this.tableProject.ProjectIDColumn}, new System.Data.DataColumn[] {
                 this.tableDistribution.ProjectIDColumn}, false);
     this.Relations.Add(this.relationFK_Distribution_Project);
     this.relationFK_Distribution_User = new System.Data.DataRelation("FK_Distribution_User", new System.Data.DataColumn[] {
                 this.tableUser.UserIDColumn}, new System.Data.DataColumn[] {
                 this.tableDistribution.FromUserIDColumn}, false);
     this.Relations.Add(this.relationFK_Distribution_User);
     this.relationFK_Distribution_User1 = new System.Data.DataRelation("FK_Distribution_User1", new System.Data.DataColumn[] {
                 this.tableUser.UserIDColumn}, new System.Data.DataColumn[] {
                 this.tableDistribution.ToUserIDColumn}, false);
     this.Relations.Add(this.relationFK_Distribution_User1);
     this.relationFK_UserRelationShip_Project = new System.Data.DataRelation("FK_UserRelationShip_Project", new System.Data.DataColumn[] {
                 this.tableProject.ProjectIDColumn}, new System.Data.DataColumn[] {
                 this.tableUserRelationShip.ProjectIDColumn}, false);
     this.Relations.Add(this.relationFK_UserRelationShip_Project);
     this.relationFK_UserRelationShip_User = new System.Data.DataRelation("FK_UserRelationShip_User", new System.Data.DataColumn[] {
                 this.tableUser.UserIDColumn}, new System.Data.DataColumn[] {
                 this.tableUserRelationShip.SuperiorUserIDColumn}, false);
     this.Relations.Add(this.relationFK_UserRelationShip_User);
     this.relationFK_UserRelationShip_User1 = new System.Data.DataRelation("FK_UserRelationShip_User1", new System.Data.DataColumn[] {
                 this.tableUser.UserIDColumn}, new System.Data.DataColumn[] {
                 this.tableUserRelationShip.InferiorUserIDColumn}, false);
     this.Relations.Add(this.relationFK_UserRelationShip_User1);
 }
Ejemplo n.º 2
0
 internal V_FormatedUserRow(System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableV_FormatedUser = ((V_FormatedUserDataTable)(this.Table));
 }
Ejemplo n.º 3
0
 internal void InitVars(bool initTable) {
     this.tableCity = ((CityDataTable)(base.Tables["City"]));
     if ((initTable == true)) {
         if ((this.tableCity != null)) {
             this.tableCity.InitVars();
         }
     }
     this.tableDonation = ((DonationDataTable)(base.Tables["Donation"]));
     if ((initTable == true)) {
         if ((this.tableDonation != null)) {
             this.tableDonation.InitVars();
         }
     }
     this.tableUser = ((UserDataTable)(base.Tables["User"]));
     if ((initTable == true)) {
         if ((this.tableUser != null)) {
             this.tableUser.InitVars();
         }
     }
     this.tableProject = ((ProjectDataTable)(base.Tables["Project"]));
     if ((initTable == true)) {
         if ((this.tableProject != null)) {
             this.tableProject.InitVars();
         }
     }
     this.tableDistribution = ((DistributionDataTable)(base.Tables["Distribution"]));
     if ((initTable == true)) {
         if ((this.tableDistribution != null)) {
             this.tableDistribution.InitVars();
         }
     }
     this.tableV_Distribution_Project = ((V_Distribution_ProjectDataTable)(base.Tables["V_Distribution_Project"]));
     if ((initTable == true)) {
         if ((this.tableV_Distribution_Project != null)) {
             this.tableV_Distribution_Project.InitVars();
         }
     }
     this.tableV_User_Distribution_Project = ((V_User_Distribution_ProjectDataTable)(base.Tables["V_User_Distribution_Project"]));
     if ((initTable == true)) {
         if ((this.tableV_User_Distribution_Project != null)) {
             this.tableV_User_Distribution_Project.InitVars();
         }
     }
     this.tableV_FormatedUser = ((V_FormatedUserDataTable)(base.Tables["V_FormatedUser"]));
     if ((initTable == true)) {
         if ((this.tableV_FormatedUser != null)) {
             this.tableV_FormatedUser.InitVars();
         }
     }
     this.tableUserRelationShip = ((UserRelationShipDataTable)(base.Tables["UserRelationShip"]));
     if ((initTable == true)) {
         if ((this.tableUserRelationShip != null)) {
             this.tableUserRelationShip.InitVars();
         }
     }
     this.tableV_ProjectNameAndID = ((V_ProjectNameAndIDDataTable)(base.Tables["V_ProjectNameAndID"]));
     if ((initTable == true)) {
         if ((this.tableV_ProjectNameAndID != null)) {
             this.tableV_ProjectNameAndID.InitVars();
         }
     }
     this.relationFK_User_User = this.Relations["FK_User_User"];
     this.relationFK_Donation_User = this.Relations["FK_Donation_User"];
     this.relationFK_Donation_Project = this.Relations["FK_Donation_Project"];
     this.relationFK_Project_Project = this.Relations["FK_Project_Project"];
     this.relationFK_Distribution_Project = this.Relations["FK_Distribution_Project"];
     this.relationFK_Distribution_User = this.Relations["FK_Distribution_User"];
     this.relationFK_Distribution_User1 = this.Relations["FK_Distribution_User1"];
     this.relationFK_UserRelationShip_Project = this.Relations["FK_UserRelationShip_Project"];
     this.relationFK_UserRelationShip_User = this.Relations["FK_UserRelationShip_User"];
     this.relationFK_UserRelationShip_User1 = this.Relations["FK_UserRelationShip_User1"];
 }