Пример #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the LocationHolidays EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToLocationHolidays(LocationHoliday locationHoliday)
 {
     base.AddObject("LocationHolidays", locationHoliday);
 }
Пример #2
0
 /// <summary>
 /// Create a new LocationHoliday object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="locationID">Initial value of the LocationID property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="holidayDate">Initial value of the HolidayDate property.</param>
 /// <param name="lastUpdated">Initial value of the LastUpdated property.</param>
 /// <param name="lastUpdatedBy">Initial value of the LastUpdatedBy property.</param>
 public static LocationHoliday CreateLocationHoliday(global::System.Int32 id, global::System.Int32 locationID, global::System.String title, global::System.DateTime holidayDate, global::System.DateTime lastUpdated, global::System.String lastUpdatedBy)
 {
     LocationHoliday locationHoliday = new LocationHoliday();
     locationHoliday.ID = id;
     locationHoliday.LocationID = locationID;
     locationHoliday.Title = title;
     locationHoliday.HolidayDate = holidayDate;
     locationHoliday.LastUpdated = lastUpdated;
     locationHoliday.LastUpdatedBy = lastUpdatedBy;
     return locationHoliday;
 }