Пример #1
0
 /// <summary>
 /// Create a new Product object.
 /// </summary>
 /// <param name="id">Initial value of id.</param>
 /// <param name="name">Initial value of name.</param>
 public static Product CreateProduct(int id, string name)
 {
     Product product = new Product();
     product.id = id;
     product.name = name;
     return product;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Products EntitySet.
 /// </summary>
 public void AddToProducts(Product product)
 {
     base.AddObject("Products", product);
 }