Exemplo n.º 1
0
		internal void InitVars() {
			this.tableDiscourseChartData = ((DiscourseChartDataDataTable)(this.Tables["DiscourseChartData"]));
			if ((this.tableDiscourseChartData != null)) {
				this.tableDiscourseChartData.InitVars();
			}
			this.tableFonts = ((FontsDataTable)(this.Tables["Fonts"]));
			if ((this.tableFonts != null)) {
				this.tableFonts.InitVars();
			}
			this.tableVernacularFont = ((VernacularFontDataTable)(this.Tables["VernacularFont"]));
			if ((this.tableVernacularFont != null)) {
				this.tableVernacularFont.InitVars();
			}
			this.tableTransliterationFont = ((TransliterationFontDataTable)(this.Tables["TransliterationFont"]));
			if ((this.tableTransliterationFont != null)) {
				this.tableTransliterationFont.InitVars();
			}
			this.tableGlossFont = ((GlossFontDataTable)(this.Tables["GlossFont"]));
			if ((this.tableGlossFont != null)) {
				this.tableGlossFont.InitVars();
			}
			this.tableDiscourseClause = ((DiscourseClauseDataTable)(this.Tables["DiscourseClause"]));
			if ((this.tableDiscourseClause != null)) {
				this.tableDiscourseClause.InitVars();
			}
			this.tableVernacular = ((VernacularDataTable)(this.Tables["Vernacular"]));
			if ((this.tableVernacular != null)) {
				this.tableVernacular.InitVars();
			}
			this.tableTransliteration = ((TransliterationDataTable)(this.Tables["Transliteration"]));
			if ((this.tableTransliteration != null)) {
				this.tableTransliteration.InitVars();
			}
			this.tableGloss = ((GlossDataTable)(this.Tables["Gloss"]));
			if ((this.tableGloss != null)) {
				this.tableGloss.InitVars();
			}
			this.relationFonts_VernacularFont = this.Relations["Fonts_VernacularFont"];
			this.relationFonts_TransliterationFont = this.Relations["Fonts_TransliterationFont"];
			this.relationFonts_GlossFont = this.Relations["Fonts_GlossFont"];
			this.relationDiscourseClause_Vernacular = this.Relations["DiscourseClause_Vernacular"];
			this.relationDiscourseClause_Transliteration = this.Relations["DiscourseClause_Transliteration"];
			this.relationDiscourseClause_Gloss = this.Relations["DiscourseClause_Gloss"];
			this.relationDiscourseChartData_Fonts = this.Relations["DiscourseChartData_Fonts"];
			this.relationDiscourseChartData_DiscourseClause = this.Relations["DiscourseChartData_DiscourseClause"];
		}
Exemplo n.º 2
0
		private void InitClass() {
			this.DataSetName = "DiscourseChartDataClass";
			this.Prefix = "";
			this.Namespace = "http://www.sil.org/computing/schemas/DiscourseChartData.xsd";
			this.Locale = new System.Globalization.CultureInfo("en-US");
			this.CaseSensitive = false;
			this.EnforceConstraints = true;
			this.tableDiscourseChartData = new DiscourseChartDataDataTable();
			this.Tables.Add(this.tableDiscourseChartData);
			this.tableFonts = new FontsDataTable();
			this.Tables.Add(this.tableFonts);
			this.tableVernacularFont = new VernacularFontDataTable();
			this.Tables.Add(this.tableVernacularFont);
			this.tableTransliterationFont = new TransliterationFontDataTable();
			this.Tables.Add(this.tableTransliterationFont);
			this.tableGlossFont = new GlossFontDataTable();
			this.Tables.Add(this.tableGlossFont);
			this.tableDiscourseClause = new DiscourseClauseDataTable();
			this.Tables.Add(this.tableDiscourseClause);
			this.tableVernacular = new VernacularDataTable();
			this.Tables.Add(this.tableVernacular);
			this.tableTransliteration = new TransliterationDataTable();
			this.Tables.Add(this.tableTransliteration);
			this.tableGloss = new GlossDataTable();
			this.Tables.Add(this.tableGloss);
			ForeignKeyConstraint fkc;
			fkc = new ForeignKeyConstraint("DiscourseChartData_Fonts", new DataColumn[] {
						this.tableDiscourseChartData.DiscourseChartData_IdColumn}, new DataColumn[] {
						this.tableFonts.DiscourseChartData_IdColumn});
			this.tableFonts.Constraints.Add(fkc);
			fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
			fkc.DeleteRule = System.Data.Rule.Cascade;
			fkc.UpdateRule = System.Data.Rule.Cascade;
			fkc = new ForeignKeyConstraint("Fonts_VernacularFont", new DataColumn[] {
						this.tableFonts.Fonts_IdColumn}, new DataColumn[] {
						this.tableVernacularFont.Fonts_IdColumn});
			this.tableVernacularFont.Constraints.Add(fkc);
			fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
			fkc.DeleteRule = System.Data.Rule.Cascade;
			fkc.UpdateRule = System.Data.Rule.Cascade;
			fkc = new ForeignKeyConstraint("Fonts_TransliterationFont", new DataColumn[] {
						this.tableFonts.Fonts_IdColumn}, new DataColumn[] {
						this.tableTransliterationFont.Fonts_IdColumn});
			this.tableTransliterationFont.Constraints.Add(fkc);
			fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
			fkc.DeleteRule = System.Data.Rule.Cascade;
			fkc.UpdateRule = System.Data.Rule.Cascade;
			fkc = new ForeignKeyConstraint("Fonts_GlossFont", new DataColumn[] {
						this.tableFonts.Fonts_IdColumn}, new DataColumn[] {
						this.tableGlossFont.Fonts_IdColumn});
			this.tableGlossFont.Constraints.Add(fkc);
			fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
			fkc.DeleteRule = System.Data.Rule.Cascade;
			fkc.UpdateRule = System.Data.Rule.Cascade;
			fkc = new ForeignKeyConstraint("DiscourseChartData_DiscourseClause", new DataColumn[] {
						this.tableDiscourseChartData.DiscourseChartData_IdColumn}, new DataColumn[] {
						this.tableDiscourseClause.DiscourseChartData_IdColumn});
			this.tableDiscourseClause.Constraints.Add(fkc);
			fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
			fkc.DeleteRule = System.Data.Rule.Cascade;
			fkc.UpdateRule = System.Data.Rule.Cascade;
			fkc = new ForeignKeyConstraint("DiscourseClause_Vernacular", new DataColumn[] {
						this.tableDiscourseClause.DiscourseClause_IdColumn}, new DataColumn[] {
						this.tableVernacular.DiscourseClause_IdColumn});
			this.tableVernacular.Constraints.Add(fkc);
			fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
			fkc.DeleteRule = System.Data.Rule.Cascade;
			fkc.UpdateRule = System.Data.Rule.Cascade;
			fkc = new ForeignKeyConstraint("DiscourseClause_Transliteration", new DataColumn[] {
						this.tableDiscourseClause.DiscourseClause_IdColumn}, new DataColumn[] {
						this.tableTransliteration.DiscourseClause_IdColumn});
			this.tableTransliteration.Constraints.Add(fkc);
			fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
			fkc.DeleteRule = System.Data.Rule.Cascade;
			fkc.UpdateRule = System.Data.Rule.Cascade;
			fkc = new ForeignKeyConstraint("DiscourseClause_Gloss", new DataColumn[] {
						this.tableDiscourseClause.DiscourseClause_IdColumn}, new DataColumn[] {
						this.tableGloss.DiscourseClause_IdColumn});
			this.tableGloss.Constraints.Add(fkc);
			fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
			fkc.DeleteRule = System.Data.Rule.Cascade;
			fkc.UpdateRule = System.Data.Rule.Cascade;
			this.relationFonts_VernacularFont = new DataRelation("Fonts_VernacularFont", new DataColumn[] {
						this.tableFonts.Fonts_IdColumn}, new DataColumn[] {
						this.tableVernacularFont.Fonts_IdColumn}, false);
			this.relationFonts_VernacularFont.Nested = true;
			this.Relations.Add(this.relationFonts_VernacularFont);
			this.relationFonts_TransliterationFont = new DataRelation("Fonts_TransliterationFont", new DataColumn[] {
						this.tableFonts.Fonts_IdColumn}, new DataColumn[] {
						this.tableTransliterationFont.Fonts_IdColumn}, false);
			this.relationFonts_TransliterationFont.Nested = true;
			this.Relations.Add(this.relationFonts_TransliterationFont);
			this.relationFonts_GlossFont = new DataRelation("Fonts_GlossFont", new DataColumn[] {
						this.tableFonts.Fonts_IdColumn}, new DataColumn[] {
						this.tableGlossFont.Fonts_IdColumn}, false);
			this.relationFonts_GlossFont.Nested = true;
			this.Relations.Add(this.relationFonts_GlossFont);
			this.relationDiscourseClause_Vernacular = new DataRelation("DiscourseClause_Vernacular", new DataColumn[] {
						this.tableDiscourseClause.DiscourseClause_IdColumn}, new DataColumn[] {
						this.tableVernacular.DiscourseClause_IdColumn}, false);
			this.relationDiscourseClause_Vernacular.Nested = true;
			this.Relations.Add(this.relationDiscourseClause_Vernacular);
			this.relationDiscourseClause_Transliteration = new DataRelation("DiscourseClause_Transliteration", new DataColumn[] {
						this.tableDiscourseClause.DiscourseClause_IdColumn}, new DataColumn[] {
						this.tableTransliteration.DiscourseClause_IdColumn}, false);
			this.relationDiscourseClause_Transliteration.Nested = true;
			this.Relations.Add(this.relationDiscourseClause_Transliteration);
			this.relationDiscourseClause_Gloss = new DataRelation("DiscourseClause_Gloss", new DataColumn[] {
						this.tableDiscourseClause.DiscourseClause_IdColumn}, new DataColumn[] {
						this.tableGloss.DiscourseClause_IdColumn}, false);
			this.relationDiscourseClause_Gloss.Nested = true;
			this.Relations.Add(this.relationDiscourseClause_Gloss);
			this.relationDiscourseChartData_Fonts = new DataRelation("DiscourseChartData_Fonts", new DataColumn[] {
						this.tableDiscourseChartData.DiscourseChartData_IdColumn}, new DataColumn[] {
						this.tableFonts.DiscourseChartData_IdColumn}, false);
			this.relationDiscourseChartData_Fonts.Nested = true;
			this.Relations.Add(this.relationDiscourseChartData_Fonts);
			this.relationDiscourseChartData_DiscourseClause = new DataRelation("DiscourseChartData_DiscourseClause", new DataColumn[] {
						this.tableDiscourseChartData.DiscourseChartData_IdColumn}, new DataColumn[] {
						this.tableDiscourseClause.DiscourseChartData_IdColumn}, false);
			this.relationDiscourseChartData_DiscourseClause.Nested = true;
			this.Relations.Add(this.relationDiscourseChartData_DiscourseClause);
		}
Exemplo n.º 3
0
			internal VernacularFontRow(DataRowBuilder rb) :
					base(rb) {
				this.tableVernacularFont = ((VernacularFontDataTable)(this.Table));
			}