/// <summary>
 /// Create a new Payment object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="menuItemId">Initial value of the MenuItemId property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 /// <param name="restaurantID">Initial value of the RestaurantID property.</param>
 public static Payment CreatePayment(global::System.Int32 id, global::System.Int32 userId, global::System.Int32 menuItemId, global::System.DateTime date, global::System.Int32 restaurantID)
 {
     Payment payment = new Payment();
     payment.Id = id;
     payment.UserId = userId;
     payment.MenuItemId = menuItemId;
     payment.Date = date;
     payment.RestaurantID = restaurantID;
     return payment;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Payments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPayments(Payment payment)
 {
     base.AddObject("Payments", payment);
 }