/// <summary> /// Create a new Guest object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="passportNo">Initial value of the PassportNo property.</param> public static Guest CreateGuest(global::System.Int32 id, global::System.String name, global::System.String passportNo) { Guest guest = new Guest(); guest.Id = id; guest.Name = name; guest.PassportNo = passportNo; return guest; }
/// <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); }