/// <summary> /// Initialize a new CIM Unit /// </summary> public MM_Unit() { this.ElemType = MM_Repository.FindElementType("Unit"); if (this.UnitType == null) { this.UnitType = MM_Repository.FindGenerationType("UNKNOWN"); } }
/// <summary> /// Initialize a new CIM Unit /// </summary> /// <param name="ElementSource">The data source for this Unit</param> /// <param name="AddIfNew">Whether to add any new elements that may be created</param> public MM_Unit(DbDataReader ElementSource, bool AddIfNew) : base(ElementSource, AddIfNew) { this.ElemType = MM_Repository.FindElementType("Unit"); if (this.UnitType == null) { this.UnitType = MM_Repository.FindGenerationType("UNKNOWN"); } this.UnitStatus.TEID = this.TEID; }