예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CoffeeBags EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCoffeeBags(CoffeeBag coffeeBag)
 {
     base.AddObject("CoffeeBags", coffeeBag);
 }
예제 #2
0
 /// <summary>
 /// Create a new CoffeeBag object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="imageSmall">Initial value of the ImageSmall property.</param>
 /// <param name="imageLarge">Initial value of the ImageLarge property.</param>
 public static CoffeeBag CreateCoffeeBag(global::System.Int32 id, global::System.String name, global::System.String description, global::System.Decimal price, global::System.String imageSmall, global::System.String imageLarge)
 {
     CoffeeBag coffeeBag = new CoffeeBag();
     coffeeBag.Id = id;
     coffeeBag.Name = name;
     coffeeBag.Description = description;
     coffeeBag.Price = price;
     coffeeBag.ImageSmall = imageSmall;
     coffeeBag.ImageLarge = imageLarge;
     return coffeeBag;
 }