Example #1
0
 /// <summary>
 /// Create a new CateringChoice object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="amount">Initial value of the Amount property.</param>
 /// <param name="time">Initial value of the Time property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="bookingID">Initial value of the BookingID property.</param>
 /// <param name="cateringID">Initial value of the CateringID property.</param>
 public static CateringChoice CreateCateringChoice(global::System.Int32 id, global::System.Int32 amount, global::System.DateTime time, global::System.String status, global::System.Int32 bookingID, global::System.Int32 cateringID)
 {
     CateringChoice cateringChoice = new CateringChoice();
     cateringChoice.ID = id;
     cateringChoice.Amount = amount;
     cateringChoice.Time = time;
     cateringChoice.Status = status;
     cateringChoice.BookingID = bookingID;
     cateringChoice.CateringID = cateringID;
     return cateringChoice;
 }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CateringChoices EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCateringChoices(CateringChoice cateringChoice)
 {
     base.AddObject("CateringChoices", cateringChoice);
 }