Beispiel #1
0
        private void InitClass()
        {
            this.DataSetName        = "dset1";
            this.Prefix             = "";
            this.Namespace          = "http://tempuri.org/dset1.xsd";
            this.Locale             = new System.Globalization.CultureInfo("en-US");
            this.CaseSensitive      = false;
            this.EnforceConstraints = true;
            this.tableCONFIG        = new CONFIGDataTable();
            this.Tables.Add(this.tableCONFIG);
            this.tablePROFESOR = new PROFESORDataTable();
            this.Tables.Add(this.tablePROFESOR);
            this.tableG_ALUM = new G_ALUMDataTable();
            this.Tables.Add(this.tableG_ALUM);
            ForeignKeyConstraint fkc;

            fkc = new ForeignKeyConstraint("G_ALUM-PROFESOR", new DataColumn[] {
                this.tablePROFESOR.ID_PROFColumn
            }, new DataColumn[] {
                this.tableG_ALUM.ID_PROFColumn
            });
            this.tableG_ALUM.Constraints.Add(fkc);
            fkc.AcceptRejectRule          = System.Data.AcceptRejectRule.None;
            fkc.DeleteRule                = System.Data.Rule.Cascade;
            fkc.UpdateRule                = System.Data.Rule.Cascade;
            this._relationG_ALUM_PROFESOR = new DataRelation("G_ALUM-PROFESOR", new DataColumn[] {
                this.tablePROFESOR.ID_PROFColumn
            }, new DataColumn[] {
                this.tableG_ALUM.ID_PROFColumn
            }, false);
            this.Relations.Add(this._relationG_ALUM_PROFESOR);
        }
Beispiel #2
0
            public override DataTable Clone()
            {
                G_ALUMDataTable cln = ((G_ALUMDataTable)(base.Clone()));

                cln.InitVars();
                return(cln);
            }
Beispiel #3
0
 internal void InitVars()
 {
     this.tableCONFIG = ((CONFIGDataTable)(this.Tables["CONFIG"]));
     if ((this.tableCONFIG != null))
     {
         this.tableCONFIG.InitVars();
     }
     this.tablePROFESOR = ((PROFESORDataTable)(this.Tables["PROFESOR"]));
     if ((this.tablePROFESOR != null))
     {
         this.tablePROFESOR.InitVars();
     }
     this.tableG_ALUM = ((G_ALUMDataTable)(this.Tables["G_ALUM"]));
     if ((this.tableG_ALUM != null))
     {
         this.tableG_ALUM.InitVars();
     }
     this._relationG_ALUM_PROFESOR = this.Relations["G_ALUM-PROFESOR"];
 }
Beispiel #4
0
 internal G_ALUMRow(DataRowBuilder rb) :
     base(rb)
 {
     this.tableG_ALUM = ((G_ALUMDataTable)(this.Table));
 }