/// <summary> /// Deprecated Method for adding a new object to the Holidays EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToHolidays(Holiday holiday) { base.AddObject("Holidays", holiday); }
/// <summary> /// Create a new Holiday object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="date">Initial value of the Date property.</param> public static Holiday CreateHoliday(global::System.Int32 id, global::System.DateTime date) { Holiday holiday = new Holiday(); holiday.Id = id; holiday.Date = date; return holiday; }