/// <summary> /// Deprecated Method for adding a new object to the UnitOfMeasures EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUnitOfMeasures(UnitOfMeasure unitOfMeasure) { base.AddObject("UnitOfMeasures", unitOfMeasure); }
/// <summary> /// Create a new UnitOfMeasure object. /// </summary> /// <param name="unitOfMeasureID">Initial value of the UnitOfMeasureID property.</param> public static UnitOfMeasure CreateUnitOfMeasure(global::System.Int32 unitOfMeasureID) { UnitOfMeasure unitOfMeasure = new UnitOfMeasure(); unitOfMeasure.UnitOfMeasureID = unitOfMeasureID; return unitOfMeasure; }