/// <summary> /// Deprecated Method for adding a new object to the ScheduleUnits EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToScheduleUnits(ScheduleUnit scheduleUnit) { base.AddObject("ScheduleUnits", scheduleUnit); }
/// <summary> /// Create a new ScheduleUnit object. /// </summary> /// <param name="scheduleUnitId">Initial value of the ScheduleUnitId property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="currentVersion">Initial value of the CurrentVersion property.</param> public static ScheduleUnit CreateScheduleUnit(global::System.Int32 scheduleUnitId, global::System.String description, global::System.Byte[] currentVersion) { ScheduleUnit scheduleUnit = new ScheduleUnit(); scheduleUnit.ScheduleUnitId = scheduleUnitId; scheduleUnit.Description = description; scheduleUnit.CurrentVersion = currentVersion; return scheduleUnit; }