예제 #1
0
            public override DataTable Clone()
            {
                ThreadDataTable cln = ((ThreadDataTable)(base.Clone()));

                cln.InitVars();
                return(cln);
            }
예제 #2
0
        private void InitClass()
        {
            this.DataSetName        = "ThreadData";
            this.Prefix             = "";
            this.Namespace          = "http://tempuri.org/ThreadData.xsd";
            this.Locale             = new System.Globalization.CultureInfo("en-US");
            this.CaseSensitive      = false;
            this.EnforceConstraints = true;
            this.tableThread        = new ThreadDataTable();
            this.Tables.Add(this.tableThread);
            ForeignKeyConstraint fkc;

            fkc = new ForeignKeyConstraint("ThreadThread", new DataColumn[] {
                this.tableThread.IdColumn
            }, new DataColumn[] {
                this.tableThread.ParentColumn
            });
            this.tableThread.Constraints.Add(fkc);
            fkc.AcceptRejectRule      = System.Data.AcceptRejectRule.None;
            fkc.DeleteRule            = System.Data.Rule.Cascade;
            fkc.UpdateRule            = System.Data.Rule.Cascade;
            this.relationThreadThread = new DataRelation("ThreadThread", new DataColumn[] {
                this.tableThread.IdColumn
            }, new DataColumn[] {
                this.tableThread.ParentColumn
            }, false);
            this.Relations.Add(this.relationThreadThread);
        }
예제 #3
0
 public void InitVars()
 {
     this.tableThread = ((ThreadDataTable)(this.Tables["Thread"]));
     if ((this.tableThread != null))
     {
         this.tableThread.InitVars();
     }
     this.relationThreadThread = this.Relations["ThreadThread"];
 }
예제 #4
0
 public ThreadRow(DataRowBuilder rb) :
     base(rb)
 {
     this.tableThread = ((ThreadDataTable)(this.Table));
 }
예제 #5
0
 public ThreadRow(DataRowBuilder rb) : 
         base(rb) {
     this.tableThread = ((ThreadDataTable)(this.Table));
 }
예제 #6
0
 private void InitClass() {
     this.DataSetName = "ThreadData";
     this.Prefix = "";
     this.Namespace = "http://tempuri.org/ThreadData.xsd";
     this.Locale = new System.Globalization.CultureInfo("en-US");
     this.CaseSensitive = false;
     this.EnforceConstraints = true;
     this.tableThread = new ThreadDataTable();
     this.Tables.Add(this.tableThread);
     ForeignKeyConstraint fkc;
     fkc = new ForeignKeyConstraint("ThreadThread", new DataColumn[] {
                 this.tableThread.IdColumn}, new DataColumn[] {
                 this.tableThread.ParentColumn});
     this.tableThread.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     this.relationThreadThread = new DataRelation("ThreadThread", new DataColumn[] {
                 this.tableThread.IdColumn}, new DataColumn[] {
                 this.tableThread.ParentColumn}, false);
     this.Relations.Add(this.relationThreadThread);
 }
예제 #7
0
 public void InitVars() {
     this.tableThread = ((ThreadDataTable)(this.Tables["Thread"]));
     if ((this.tableThread != null)) {
         this.tableThread.InitVars();
     }
     this.relationThreadThread = this.Relations["ThreadThread"];
 }