/// <summary> /// Deprecated Method for adding a new object to the Guests EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToGuests(Guest guest) { base.AddObject("Guests", guest); }
/// <summary> /// Create a new Guest object. /// </summary> /// <param name="guestID">Initial value of the GuestID property.</param> /// <param name="guestFirstName">Initial value of the GuestFirstName property.</param> /// <param name="guestSurName">Initial value of the GuestSurName property.</param> /// <param name="guestPhone">Initial value of the GuestPhone property.</param> public static Guest CreateGuest(global::System.Int16 guestID, global::System.String guestFirstName, global::System.String guestSurName, global::System.String guestPhone) { Guest guest = new Guest(); guest.GuestID = guestID; guest.GuestFirstName = guestFirstName; guest.GuestSurName = guestSurName; guest.GuestPhone = guestPhone; return guest; }