Пример #1
0
 /// <summary>
 /// Create a new UnitsOfMeasurement object.
 /// </summary>
 /// <param name="uOMID">Initial value of the UOMID property.</param>
 /// <param name="units">Initial value of the Units property.</param>
 /// <param name="multiplier">Initial value of the Multiplier property.</param>
 public static UnitsOfMeasurement CreateUnitsOfMeasurement(global::System.Int16 uOMID, global::System.String units, global::System.Decimal multiplier)
 {
     UnitsOfMeasurement unitsOfMeasurement = new UnitsOfMeasurement();
     unitsOfMeasurement.UOMID = uOMID;
     unitsOfMeasurement.Units = units;
     unitsOfMeasurement.Multiplier = multiplier;
     return unitsOfMeasurement;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the UnitsOfMeasurements EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUnitsOfMeasurements(UnitsOfMeasurement unitsOfMeasurement)
 {
     base.AddObject("UnitsOfMeasurements", unitsOfMeasurement);
 }