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

                cln.InitVars();
                return(cln);
            }
예제 #2
0
 internal void InitVars()
 {
     this.tableKB = ((KBDataTable)(this.Tables["KB"]));
     if ((this.tableKB != null))
     {
         this.tableKB.InitVars();
     }
     this.tableMAP = ((MAPDataTable)(this.Tables["MAP"]));
     if ((this.tableMAP != null))
     {
         this.tableMAP.InitVars();
     }
     this.tableTU = ((TUDataTable)(this.Tables["TU"]));
     if ((this.tableTU != null))
     {
         this.tableTU.InitVars();
     }
     this.tableRS = ((RSDataTable)(this.Tables["RS"]));
     if ((this.tableRS != null))
     {
         this.tableRS.InitVars();
     }
     this.relationTU_RS  = this.Relations["TU_RS"];
     this.relationMAP_TU = this.Relations["MAP_TU"];
     this.relationKB_MAP = this.Relations["KB_MAP"];
 }
예제 #3
0
 internal MAPRow(DataRowBuilder rb)
     :
     base(rb)
 {
     this.tableMAP = ((MAPDataTable)(this.Table));
 }
예제 #4
0
        private void InitClass()
        {
            this.DataSetName        = "AdaptItKnowledgeBase";
            this.Prefix             = "";
            this.Namespace          = "http://www.sil.org/computing/schemas/AdaptIt KB.xsd";
            this.Locale             = new System.Globalization.CultureInfo("en-US");
            this.CaseSensitive      = false;
            this.EnforceConstraints = false;
            this.tableKB            = new KBDataTable();
            this.Tables.Add(this.tableKB);
            this.tableMAP = new MAPDataTable();
            this.Tables.Add(this.tableMAP);
            this.tableTU = new TUDataTable();
            this.Tables.Add(this.tableTU);
            this.tableRS = new RSDataTable();
            this.Tables.Add(this.tableRS);
            ForeignKeyConstraint fkc;

            fkc = new ForeignKeyConstraint("KB_MAP", new DataColumn[] {
                this.tableKB.KB_IdColumn
            }, new DataColumn[] {
                this.tableMAP.KB_IdColumn
            });
            this.tableMAP.Constraints.Add(fkc);
            fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
            fkc.DeleteRule       = System.Data.Rule.Cascade;
            fkc.UpdateRule       = System.Data.Rule.Cascade;
            fkc = new ForeignKeyConstraint("MAP_TU", new DataColumn[] {
                this.tableMAP.mnColumn
            }, new DataColumn[] {
                this.tableTU.mnColumn
            });
            this.tableTU.Constraints.Add(fkc);
            fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
            fkc.DeleteRule       = System.Data.Rule.Cascade;
            fkc.UpdateRule       = System.Data.Rule.Cascade;
            fkc = new ForeignKeyConstraint("TU_RS", new DataColumn[] {
                this.tableTU.kColumn
            }, new DataColumn[] {
                this.tableRS.kColumn
            });
            this.tableRS.Constraints.Add(fkc);
            fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
            fkc.DeleteRule       = System.Data.Rule.Cascade;
            fkc.UpdateRule       = System.Data.Rule.Cascade;
            this.relationTU_RS   = new DataRelation("TU_RS", new DataColumn[] {
                this.tableTU.kColumn
            }, new DataColumn[] {
                this.tableRS.kColumn
            }, false);
            this.relationTU_RS.Nested = true;
            this.Relations.Add(this.relationTU_RS);
            this.relationMAP_TU = new DataRelation("MAP_TU", new DataColumn[] {
                this.tableMAP.mnColumn
            }, new DataColumn[] {
                this.tableTU.mnColumn
            }, false);
            this.relationMAP_TU.Nested = true;
            this.Relations.Add(this.relationMAP_TU);
            this.relationKB_MAP = new DataRelation("KB_MAP", new DataColumn[] {
                this.tableKB.KB_IdColumn
            }, new DataColumn[] {
                this.tableMAP.KB_IdColumn
            }, false);
            this.relationKB_MAP.Nested = true;
            this.Relations.Add(this.relationKB_MAP);
        }
예제 #5
0
			internal MAPRow(DataRowBuilder rb)
				:
					base(rb)
			{
				this.tableMAP = ((MAPDataTable)(this.Table));
			}
예제 #6
0
		private void InitClass()
		{
			this.DataSetName = "AdaptItKnowledgeBase";
			this.Prefix = "";
			this.Namespace = "http://www.sil.org/computing/schemas/AdaptIt KB.xsd";
			this.Locale = new System.Globalization.CultureInfo("en-US");
			this.CaseSensitive = false;
			this.EnforceConstraints = false;
			this.tableKB = new KBDataTable();
			this.Tables.Add(this.tableKB);
			this.tableMAP = new MAPDataTable();
			this.Tables.Add(this.tableMAP);
			this.tableTU = new TUDataTable();
			this.Tables.Add(this.tableTU);
			this.tableRS = new RSDataTable();
			this.Tables.Add(this.tableRS);
			ForeignKeyConstraint fkc;
			fkc = new ForeignKeyConstraint("KB_MAP", new DataColumn[] {
						this.tableKB.KB_IdColumn}, new DataColumn[] {
						this.tableMAP.KB_IdColumn});
			this.tableMAP.Constraints.Add(fkc);
			fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
			fkc.DeleteRule = System.Data.Rule.Cascade;
			fkc.UpdateRule = System.Data.Rule.Cascade;
			fkc = new ForeignKeyConstraint("MAP_TU", new DataColumn[] {
						this.tableMAP.mnColumn}, new DataColumn[] {
						this.tableTU.mnColumn});
			this.tableTU.Constraints.Add(fkc);
			fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
			fkc.DeleteRule = System.Data.Rule.Cascade;
			fkc.UpdateRule = System.Data.Rule.Cascade;
			fkc = new ForeignKeyConstraint("TU_RS", new DataColumn[] {
						this.tableTU.kColumn}, new DataColumn[] {
						this.tableRS.kColumn});
			this.tableRS.Constraints.Add(fkc);
			fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
			fkc.DeleteRule = System.Data.Rule.Cascade;
			fkc.UpdateRule = System.Data.Rule.Cascade;
			this.relationTU_RS = new DataRelation("TU_RS", new DataColumn[] {
						this.tableTU.kColumn}, new DataColumn[] {
						this.tableRS.kColumn}, false);
			this.relationTU_RS.Nested = true;
			this.Relations.Add(this.relationTU_RS);
			this.relationMAP_TU = new DataRelation("MAP_TU", new DataColumn[] {
						this.tableMAP.mnColumn}, new DataColumn[] {
						this.tableTU.mnColumn}, false);
			this.relationMAP_TU.Nested = true;
			this.Relations.Add(this.relationMAP_TU);
			this.relationKB_MAP = new DataRelation("KB_MAP", new DataColumn[] {
						this.tableKB.KB_IdColumn}, new DataColumn[] {
						this.tableMAP.KB_IdColumn}, false);
			this.relationKB_MAP.Nested = true;
			this.Relations.Add(this.relationKB_MAP);
		}
예제 #7
0
		internal void InitVars()
		{
			this.tableKB = ((KBDataTable)(this.Tables["KB"]));
			if ((this.tableKB != null))
			{
				this.tableKB.InitVars();
			}
			this.tableMAP = ((MAPDataTable)(this.Tables["MAP"]));
			if ((this.tableMAP != null))
			{
				this.tableMAP.InitVars();
			}
			this.tableTU = ((TUDataTable)(this.Tables["TU"]));
			if ((this.tableTU != null))
			{
				this.tableTU.InitVars();
			}
			this.tableRS = ((RSDataTable)(this.Tables["RS"]));
			if ((this.tableRS != null))
			{
				this.tableRS.InitVars();
			}
			this.relationTU_RS = this.Relations["TU_RS"];
			this.relationMAP_TU = this.Relations["MAP_TU"];
			this.relationKB_MAP = this.Relations["KB_MAP"];
		}