/// <summary> /// Create a new Booking object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="employeeId">Initial value of the EmployeeId property.</param> /// <param name="bookingClasificationId">Initial value of the BookingClasificationId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="email">Initial value of the Email property.</param> /// <param name="restaurantId">Initial value of the RestaurantId property.</param> /// <param name="dateCreated">Initial value of the DateCreated property.</param> public static Booking CreateBooking(global::System.Int32 id, global::System.Int32 employeeId, global::System.Int32 bookingClasificationId, global::System.String name, global::System.String email, global::System.Int32 restaurantId, global::System.DateTime dateCreated) { Booking booking = new Booking(); booking.Id = id; booking.EmployeeId = employeeId; booking.BookingClasificationId = bookingClasificationId; booking.Name = name; booking.Email = email; booking.RestaurantId = restaurantId; booking.DateCreated = dateCreated; return booking; }
/// <summary> /// Deprecated Method for adding a new object to the Bookings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBookings(Booking booking) { base.AddObject("Bookings", booking); }