/// <summary> /// Deprecated Method for adding a new object to the DosageUnits EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDosageUnits(DosageUnit dosageUnit) { base.AddObject("DosageUnits", dosageUnit); }
/// <summary> /// Create a new DosageUnit object. /// </summary> /// <param name="dosageUnitId">Initial value of the DosageUnitId property.</param> /// <param name="unit">Initial value of the Unit property.</param> /// <param name="currentVersion">Initial value of the CurrentVersion property.</param> public static DosageUnit CreateDosageUnit(global::System.Int32 dosageUnitId, global::System.String unit, global::System.Byte[] currentVersion) { DosageUnit dosageUnit = new DosageUnit(); dosageUnit.DosageUnitId = dosageUnitId; dosageUnit.Unit = unit; dosageUnit.CurrentVersion = currentVersion; return dosageUnit; }