Пример #1
0
            public override DataTable Clone()
            {
                dbaccessDataTable cln = ((dbaccessDataTable)(base.Clone()));

                cln.InitVars();
                return(cln);
            }
Пример #2
0
        private void InitClass()
        {
            this.DataSetName        = "vistaForm";
            this.Prefix             = "";
            this.Namespace          = "http://tempuri.org/vistaForm.xsd";
            this.Locale             = new System.Globalization.CultureInfo("en-US");
            this.CaseSensitive      = false;
            this.EnforceConstraints = true;
            this.tabledbuser        = new dbuserDataTable();
            this.Tables.Add(this.tabledbuser);
            this.tabledbaccess = new dbaccessDataTable();
            this.Tables.Add(this.tabledbaccess);
            this.tabledbdepartment = new dbdepartmentDataTable();
            this.Tables.Add(this.tabledbdepartment);
            ForeignKeyConstraint fkc;

            fkc = new ForeignKeyConstraint("dbuserdbaccess", new DataColumn[] {
                this.tabledbuser.loginColumn
            }, new DataColumn[] {
                this.tabledbaccess.loginColumn
            });
            this.tabledbaccess.Constraints.Add(fkc);
            fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
            fkc.DeleteRule       = System.Data.Rule.Cascade;
            fkc.UpdateRule       = System.Data.Rule.Cascade;
            fkc = new ForeignKeyConstraint("dbdepartmentdbaccess", new DataColumn[] {
                this.tabledbdepartment.iddbdepartmentColumn
            }, new DataColumn[] {
                this.tabledbaccess.iddbdepartmentColumn
            });
            this.tabledbaccess.Constraints.Add(fkc);
            fkc.AcceptRejectRule        = System.Data.AcceptRejectRule.None;
            fkc.DeleteRule              = System.Data.Rule.Cascade;
            fkc.UpdateRule              = System.Data.Rule.Cascade;
            this.relationdbuserdbaccess = new DataRelation("dbuserdbaccess", new DataColumn[] {
                this.tabledbuser.loginColumn
            }, new DataColumn[] {
                this.tabledbaccess.loginColumn
            }, false);
            this.Relations.Add(this.relationdbuserdbaccess);
            this.relationdbdepartmentdbaccess = new DataRelation("dbdepartmentdbaccess", new DataColumn[] {
                this.tabledbdepartment.iddbdepartmentColumn
            }, new DataColumn[] {
                this.tabledbaccess.iddbdepartmentColumn
            }, false);
            this.Relations.Add(this.relationdbdepartmentdbaccess);
        }
Пример #3
0
 internal void InitVars()
 {
     this.tabledbuser = ((dbuserDataTable)(this.Tables["dbuser"]));
     if ((this.tabledbuser != null))
     {
         this.tabledbuser.InitVars();
     }
     this.tabledbaccess = ((dbaccessDataTable)(this.Tables["dbaccess"]));
     if ((this.tabledbaccess != null))
     {
         this.tabledbaccess.InitVars();
     }
     this.tabledbdepartment = ((dbdepartmentDataTable)(this.Tables["dbdepartment"]));
     if ((this.tabledbdepartment != null))
     {
         this.tabledbdepartment.InitVars();
     }
     this.relationdbuserdbaccess       = this.Relations["dbuserdbaccess"];
     this.relationdbdepartmentdbaccess = this.Relations["dbdepartmentdbaccess"];
 }
Пример #4
0
 internal dbaccessRow(DataRowBuilder rb) :
     base(rb)
 {
     this.tabledbaccess = ((dbaccessDataTable)(this.Table));
 }