private void InitClass() { this.DataSetName = "UnitsTDS"; this.Prefix = ""; this.Namespace = "http://tempuri.org/UnitsTDS.xsd"; this.EnforceConstraints = true; this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tableLFS_FM_UNIT_COST_HISTORY = new LFS_FM_UNIT_COST_HISTORYDataTable(); base.Tables.Add(this.tableLFS_FM_UNIT_COST_HISTORY); this.tableLFS_FM_UNIT_COST_HISTORY_EXCEPTIONS = new LFS_FM_UNIT_COST_HISTORY_EXCEPTIONSDataTable(); base.Tables.Add(this.tableLFS_FM_UNIT_COST_HISTORY_EXCEPTIONS); this.tableLFS_FM_UNIT = new LFS_FM_UNITDataTable(); base.Tables.Add(this.tableLFS_FM_UNIT); this.tableLFS_FM_UNIT_NOTE = new LFS_FM_UNIT_NOTEDataTable(); base.Tables.Add(this.tableLFS_FM_UNIT_NOTE); this.tableLFS_FM_UNIT_CATEGORY = new LFS_FM_UNIT_CATEGORYDataTable(); base.Tables.Add(this.tableLFS_FM_UNIT_CATEGORY); this.tableLFS_FM_UNIT_INSPECTION = new LFS_FM_UNIT_INSPECTIONDataTable(); base.Tables.Add(this.tableLFS_FM_UNIT_INSPECTION); this.tableLFS_FM_UNIT_VEHICLE = new LFS_FM_UNIT_VEHICLEDataTable(); base.Tables.Add(this.tableLFS_FM_UNIT_VEHICLE); this.relationFK_LFS_FM_UNIT_COST_HISTORY_EXCEPTIONS_LFS_FM_UNIT_COST_HISTORY = new global::System.Data.DataRelation("FK_LFS_FM_UNIT_COST_HISTORY_EXCEPTIONS_LFS_FM_UNIT_COST_HISTORY", new global::System.Data.DataColumn[] { this.tableLFS_FM_UNIT_COST_HISTORY.CostIDColumn}, new global::System.Data.DataColumn[] { this.tableLFS_FM_UNIT_COST_HISTORY_EXCEPTIONS.CostIDColumn}, false); this.Relations.Add(this.relationFK_LFS_FM_UNIT_COST_HISTORY_EXCEPTIONS_LFS_FM_UNIT_COST_HISTORY); this.relationFK_LFS_FM_UNIT_NOTE_LFS_FM_UNIT = new global::System.Data.DataRelation("FK_LFS_FM_UNIT_NOTE_LFS_FM_UNIT", new global::System.Data.DataColumn[] { this.tableLFS_FM_UNIT.UnitIDColumn}, new global::System.Data.DataColumn[] { this.tableLFS_FM_UNIT_NOTE.UnitIDColumn}, false); this.Relations.Add(this.relationFK_LFS_FM_UNIT_NOTE_LFS_FM_UNIT); this.relationFK_LFS_FM_UNIT_CATEGORY_LFS_FM_UNIT = new global::System.Data.DataRelation("FK_LFS_FM_UNIT_CATEGORY_LFS_FM_UNIT", new global::System.Data.DataColumn[] { this.tableLFS_FM_UNIT.UnitIDColumn}, new global::System.Data.DataColumn[] { this.tableLFS_FM_UNIT_CATEGORY.UnitIDColumn}, false); this.Relations.Add(this.relationFK_LFS_FM_UNIT_CATEGORY_LFS_FM_UNIT); this.relationFK_LFS_FM_UNIT_INSPECTION_LFS_FM_UNIT = new global::System.Data.DataRelation("FK_LFS_FM_UNIT_INSPECTION_LFS_FM_UNIT", new global::System.Data.DataColumn[] { this.tableLFS_FM_UNIT.UnitIDColumn}, new global::System.Data.DataColumn[] { this.tableLFS_FM_UNIT_INSPECTION.UnitIDColumn}, false); this.Relations.Add(this.relationFK_LFS_FM_UNIT_INSPECTION_LFS_FM_UNIT); this.relationFK_LFS_FM_UNIT_VEHICLE_LFS_FM_UNIT = new global::System.Data.DataRelation("FK_LFS_FM_UNIT_VEHICLE_LFS_FM_UNIT", new global::System.Data.DataColumn[] { this.tableLFS_FM_UNIT.UnitIDColumn}, new global::System.Data.DataColumn[] { this.tableLFS_FM_UNIT_VEHICLE.UnitIDColumn}, false); this.Relations.Add(this.relationFK_LFS_FM_UNIT_VEHICLE_LFS_FM_UNIT); this.relationLFS_FM_UNIT_LFS_FM_UNIT_COST_HISTORY = new global::System.Data.DataRelation("LFS_FM_UNIT_LFS_FM_UNIT_COST_HISTORY", new global::System.Data.DataColumn[] { this.tableLFS_FM_UNIT.UnitIDColumn}, new global::System.Data.DataColumn[] { this.tableLFS_FM_UNIT_COST_HISTORY.CostIDColumn}, false); this.Relations.Add(this.relationLFS_FM_UNIT_LFS_FM_UNIT_COST_HISTORY); }
internal LFS_FM_UNIT_VEHICLERow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tableLFS_FM_UNIT_VEHICLE = ((LFS_FM_UNIT_VEHICLEDataTable)(this.Table)); }
internal void InitVars(bool initTable) { this.tableLFS_FM_UNIT_COST_HISTORY = ((LFS_FM_UNIT_COST_HISTORYDataTable)(base.Tables["LFS_FM_UNIT_COST_HISTORY"])); if ((initTable == true)) { if ((this.tableLFS_FM_UNIT_COST_HISTORY != null)) { this.tableLFS_FM_UNIT_COST_HISTORY.InitVars(); } } this.tableLFS_FM_UNIT_COST_HISTORY_EXCEPTIONS = ((LFS_FM_UNIT_COST_HISTORY_EXCEPTIONSDataTable)(base.Tables["LFS_FM_UNIT_COST_HISTORY_EXCEPTIONS"])); if ((initTable == true)) { if ((this.tableLFS_FM_UNIT_COST_HISTORY_EXCEPTIONS != null)) { this.tableLFS_FM_UNIT_COST_HISTORY_EXCEPTIONS.InitVars(); } } this.tableLFS_FM_UNIT = ((LFS_FM_UNITDataTable)(base.Tables["LFS_FM_UNIT"])); if ((initTable == true)) { if ((this.tableLFS_FM_UNIT != null)) { this.tableLFS_FM_UNIT.InitVars(); } } this.tableLFS_FM_UNIT_NOTE = ((LFS_FM_UNIT_NOTEDataTable)(base.Tables["LFS_FM_UNIT_NOTE"])); if ((initTable == true)) { if ((this.tableLFS_FM_UNIT_NOTE != null)) { this.tableLFS_FM_UNIT_NOTE.InitVars(); } } this.tableLFS_FM_UNIT_CATEGORY = ((LFS_FM_UNIT_CATEGORYDataTable)(base.Tables["LFS_FM_UNIT_CATEGORY"])); if ((initTable == true)) { if ((this.tableLFS_FM_UNIT_CATEGORY != null)) { this.tableLFS_FM_UNIT_CATEGORY.InitVars(); } } this.tableLFS_FM_UNIT_INSPECTION = ((LFS_FM_UNIT_INSPECTIONDataTable)(base.Tables["LFS_FM_UNIT_INSPECTION"])); if ((initTable == true)) { if ((this.tableLFS_FM_UNIT_INSPECTION != null)) { this.tableLFS_FM_UNIT_INSPECTION.InitVars(); } } this.tableLFS_FM_UNIT_VEHICLE = ((LFS_FM_UNIT_VEHICLEDataTable)(base.Tables["LFS_FM_UNIT_VEHICLE"])); if ((initTable == true)) { if ((this.tableLFS_FM_UNIT_VEHICLE != null)) { this.tableLFS_FM_UNIT_VEHICLE.InitVars(); } } this.relationFK_LFS_FM_UNIT_COST_HISTORY_EXCEPTIONS_LFS_FM_UNIT_COST_HISTORY = this.Relations["FK_LFS_FM_UNIT_COST_HISTORY_EXCEPTIONS_LFS_FM_UNIT_COST_HISTORY"]; this.relationFK_LFS_FM_UNIT_NOTE_LFS_FM_UNIT = this.Relations["FK_LFS_FM_UNIT_NOTE_LFS_FM_UNIT"]; this.relationFK_LFS_FM_UNIT_CATEGORY_LFS_FM_UNIT = this.Relations["FK_LFS_FM_UNIT_CATEGORY_LFS_FM_UNIT"]; this.relationFK_LFS_FM_UNIT_INSPECTION_LFS_FM_UNIT = this.Relations["FK_LFS_FM_UNIT_INSPECTION_LFS_FM_UNIT"]; this.relationFK_LFS_FM_UNIT_VEHICLE_LFS_FM_UNIT = this.Relations["FK_LFS_FM_UNIT_VEHICLE_LFS_FM_UNIT"]; this.relationLFS_FM_UNIT_LFS_FM_UNIT_COST_HISTORY = this.Relations["LFS_FM_UNIT_LFS_FM_UNIT_COST_HISTORY"]; }