private void InitClass() { this.DataSetName = "THE_Data"; this.Prefix = ""; this.Namespace = "http://tempuri.org/THE_Data.xsd"; this.EnforceConstraints = true; this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tableUnits = new UnitsDataTable(); base.Tables.Add(this.tableUnits); this.tableUnit = new UnitDataTable(); base.Tables.Add(this.tableUnit); this.tableSkills = new SkillsDataTable(); base.Tables.Add(this.tableSkills); this.tableSkill = new SkillDataTable(); base.Tables.Add(this.tableSkill); this.tableSpellEffect = new SpellEffectDataTable(); base.Tables.Add(this.tableSpellEffect); this.tableVariableValue = new VariableValueDataTable(); base.Tables.Add(this.tableVariableValue); this.tableSpellEffectBases = new SpellEffectBasesDataTable(); base.Tables.Add(this.tableSpellEffectBases); this.tableSpellEffectBase = new SpellEffectBaseDataTable(); base.Tables.Add(this.tableSpellEffectBase); this.tableVariable = new VariableDataTable(); base.Tables.Add(this.tableVariable); global::System.Data.ForeignKeyConstraint fkc; fkc = new global::System.Data.ForeignKeyConstraint("Units_Unit", new global::System.Data.DataColumn[] { this.tableUnits.Units_IdColumn}, new global::System.Data.DataColumn[] { this.tableUnit.Units_IdColumn}); this.tableUnit.Constraints.Add(fkc); fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None; fkc.DeleteRule = global::System.Data.Rule.Cascade; fkc.UpdateRule = global::System.Data.Rule.Cascade; fkc = new global::System.Data.ForeignKeyConstraint("Skills_Skill", new global::System.Data.DataColumn[] { this.tableSkills.Skills_IdColumn}, new global::System.Data.DataColumn[] { this.tableSkill.Skills_IdColumn}); this.tableSkill.Constraints.Add(fkc); fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None; fkc.DeleteRule = global::System.Data.Rule.Cascade; fkc.UpdateRule = global::System.Data.Rule.Cascade; fkc = new global::System.Data.ForeignKeyConstraint("Skill_SpellEffect", new global::System.Data.DataColumn[] { this.tableSkill.Skill_IdColumn}, new global::System.Data.DataColumn[] { this.tableSpellEffect.Skill_IdColumn}); this.tableSpellEffect.Constraints.Add(fkc); fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None; fkc.DeleteRule = global::System.Data.Rule.Cascade; fkc.UpdateRule = global::System.Data.Rule.Cascade; fkc = new global::System.Data.ForeignKeyConstraint("SpellEffect_VariableValue", new global::System.Data.DataColumn[] { this.tableSpellEffect.SpellEffect_IdColumn}, new global::System.Data.DataColumn[] { this.tableVariableValue.SpellEffect_IdColumn}); this.tableVariableValue.Constraints.Add(fkc); fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None; fkc.DeleteRule = global::System.Data.Rule.Cascade; fkc.UpdateRule = global::System.Data.Rule.Cascade; fkc = new global::System.Data.ForeignKeyConstraint("SpellEffectBases_SpellEffectBase", new global::System.Data.DataColumn[] { this.tableSpellEffectBases.SpellEffectBases_IdColumn}, new global::System.Data.DataColumn[] { this.tableSpellEffectBase.SpellEffectBases_IdColumn}); this.tableSpellEffectBase.Constraints.Add(fkc); fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None; fkc.DeleteRule = global::System.Data.Rule.Cascade; fkc.UpdateRule = global::System.Data.Rule.Cascade; fkc = new global::System.Data.ForeignKeyConstraint("SpellEffectBase_Variable", new global::System.Data.DataColumn[] { this.tableSpellEffectBase.SpellEffectBase_IdColumn}, new global::System.Data.DataColumn[] { this.tableVariable.SpellEffectBase_IdColumn}); this.tableVariable.Constraints.Add(fkc); fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None; fkc.DeleteRule = global::System.Data.Rule.Cascade; fkc.UpdateRule = global::System.Data.Rule.Cascade; this.relationUnits_Unit = new global::System.Data.DataRelation("Units_Unit", new global::System.Data.DataColumn[] { this.tableUnits.Units_IdColumn}, new global::System.Data.DataColumn[] { this.tableUnit.Units_IdColumn}, false); this.relationUnits_Unit.Nested = true; this.Relations.Add(this.relationUnits_Unit); this.relationSkills_Skill = new global::System.Data.DataRelation("Skills_Skill", new global::System.Data.DataColumn[] { this.tableSkills.Skills_IdColumn}, new global::System.Data.DataColumn[] { this.tableSkill.Skills_IdColumn}, false); this.relationSkills_Skill.Nested = true; this.Relations.Add(this.relationSkills_Skill); this.relationSkill_SpellEffect = new global::System.Data.DataRelation("Skill_SpellEffect", new global::System.Data.DataColumn[] { this.tableSkill.Skill_IdColumn}, new global::System.Data.DataColumn[] { this.tableSpellEffect.Skill_IdColumn}, false); this.relationSkill_SpellEffect.Nested = true; this.Relations.Add(this.relationSkill_SpellEffect); this.relationSpellEffect_VariableValue = new global::System.Data.DataRelation("SpellEffect_VariableValue", new global::System.Data.DataColumn[] { this.tableSpellEffect.SpellEffect_IdColumn}, new global::System.Data.DataColumn[] { this.tableVariableValue.SpellEffect_IdColumn}, false); this.relationSpellEffect_VariableValue.Nested = true; this.Relations.Add(this.relationSpellEffect_VariableValue); this.relationSpellEffectBases_SpellEffectBase = new global::System.Data.DataRelation("SpellEffectBases_SpellEffectBase", new global::System.Data.DataColumn[] { this.tableSpellEffectBases.SpellEffectBases_IdColumn}, new global::System.Data.DataColumn[] { this.tableSpellEffectBase.SpellEffectBases_IdColumn}, false); this.relationSpellEffectBases_SpellEffectBase.Nested = true; this.Relations.Add(this.relationSpellEffectBases_SpellEffectBase); this.relationSpellEffectBase_Variable = new global::System.Data.DataRelation("SpellEffectBase_Variable", new global::System.Data.DataColumn[] { this.tableSpellEffectBase.SpellEffectBase_IdColumn}, new global::System.Data.DataColumn[] { this.tableVariable.SpellEffectBase_IdColumn}, false); this.relationSpellEffectBase_Variable.Nested = true; this.Relations.Add(this.relationSpellEffectBase_Variable); }
internal VariableRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tableVariable = ((VariableDataTable)(this.Table)); }
internal void InitVars(bool initTable) { this.tableUnits = ((UnitsDataTable)(base.Tables["Units"])); if ((initTable == true)) { if ((this.tableUnits != null)) { this.tableUnits.InitVars(); } } this.tableUnit = ((UnitDataTable)(base.Tables["Unit"])); if ((initTable == true)) { if ((this.tableUnit != null)) { this.tableUnit.InitVars(); } } this.tableSkills = ((SkillsDataTable)(base.Tables["Skills"])); if ((initTable == true)) { if ((this.tableSkills != null)) { this.tableSkills.InitVars(); } } this.tableSkill = ((SkillDataTable)(base.Tables["Skill"])); if ((initTable == true)) { if ((this.tableSkill != null)) { this.tableSkill.InitVars(); } } this.tableSpellEffect = ((SpellEffectDataTable)(base.Tables["SpellEffect"])); if ((initTable == true)) { if ((this.tableSpellEffect != null)) { this.tableSpellEffect.InitVars(); } } this.tableVariableValue = ((VariableValueDataTable)(base.Tables["VariableValue"])); if ((initTable == true)) { if ((this.tableVariableValue != null)) { this.tableVariableValue.InitVars(); } } this.tableSpellEffectBases = ((SpellEffectBasesDataTable)(base.Tables["SpellEffectBases"])); if ((initTable == true)) { if ((this.tableSpellEffectBases != null)) { this.tableSpellEffectBases.InitVars(); } } this.tableSpellEffectBase = ((SpellEffectBaseDataTable)(base.Tables["SpellEffectBase"])); if ((initTable == true)) { if ((this.tableSpellEffectBase != null)) { this.tableSpellEffectBase.InitVars(); } } this.tableVariable = ((VariableDataTable)(base.Tables["Variable"])); if ((initTable == true)) { if ((this.tableVariable != null)) { this.tableVariable.InitVars(); } } this.relationUnits_Unit = this.Relations["Units_Unit"]; this.relationSkills_Skill = this.Relations["Skills_Skill"]; this.relationSkill_SpellEffect = this.Relations["Skill_SpellEffect"]; this.relationSpellEffect_VariableValue = this.Relations["SpellEffect_VariableValue"]; this.relationSpellEffectBases_SpellEffectBase = this.Relations["SpellEffectBases_SpellEffectBase"]; this.relationSpellEffectBase_Variable = this.Relations["SpellEffectBase_Variable"]; }