Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Holidays EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToHolidays(Holiday holiday)
 {
     base.AddObject("Holidays", holiday);
 }
Example #2
0
 /// <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;
 }