Esempio n. 1
0
 /// <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");
     }
 }
Esempio n. 2
0
 /// <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;
 }