Example #1
0
 /// <summary>
 /// Create a new Catering object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="productName">Initial value of the ProductName property.</param>
 /// <param name="availableFrom">Initial value of the AvailableFrom property.</param>
 /// <param name="availableTo">Initial value of the AvailableTo property.</param>
 public static Catering CreateCatering(global::System.Int32 id, global::System.Int32 price, global::System.String productName, global::System.TimeSpan availableFrom, global::System.TimeSpan availableTo)
 {
     Catering catering = new Catering();
     catering.ID = id;
     catering.Price = price;
     catering.ProductName = productName;
     catering.AvailableFrom = availableFrom;
     catering.AvailableTo = availableTo;
     return catering;
 }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Caterings EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCaterings(Catering catering)
 {
     base.AddObject("Caterings", catering);
 }