/// <summary> /// Create a new Unit object. /// </summary> /// <param name="unitID">Initial value of the UnitID property.</param> /// <param name="unitGroupID">Initial value of the UnitGroupID property.</param> /// <param name="baseMultiplier">Initial value of the BaseMultiplier property.</param> /// <param name="baseOffset">Initial value of the BaseOffset property.</param> /// <param name="system">Initial value of the System property.</param> /// <param name="lastModified">Initial value of the LastModified property.</param> public static Unit CreateUnit(global::System.String unitID, global::System.String unitGroupID, global::System.Double baseMultiplier, global::System.Double baseOffset, global::System.Boolean system, global::System.DateTime lastModified) { Unit unit = new Unit(); unit.UnitID = unitID; unit.UnitGroupID = unitGroupID; unit.BaseMultiplier = baseMultiplier; unit.BaseOffset = baseOffset; unit.System = system; unit.LastModified = lastModified; return unit; }
/// <summary> /// Deprecated Method for adding a new object to the Units EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUnits(Unit unit) { base.AddObject("Units", unit); }