Пример #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Visits EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToVisits(Visit visit)
 {
     base.AddObject("Visits", visit);
 }
Пример #2
0
 /// <summary>
 /// Create a new Visit object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="guestId">Initial value of the GuestId property.</param>
 /// <param name="roomId">Initial value of the RoomId property.</param>
 /// <param name="startDate">Initial value of the StartDate property.</param>
 /// <param name="endDate">Initial value of the EndDate property.</param>
 /// <param name="settled">Initial value of the Settled property.</param>
 public static Visit CreateVisit(global::System.Int32 id, global::System.Int32 guestId, global::System.Int32 roomId, global::System.DateTime startDate, global::System.DateTime endDate, global::System.Boolean settled)
 {
     Visit visit = new Visit();
     visit.Id = id;
     visit.GuestId = guestId;
     visit.RoomId = roomId;
     visit.StartDate = startDate;
     visit.EndDate = endDate;
     visit.Settled = settled;
     return visit;
 }