Ejemplo n.º 1
0
 /// <summary>
 /// Create a new Product object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="count">Initial value of the Count property.</param>
 /// <param name="creationDate">Initial value of the CreationDate property.</param>
 /// <param name="modificationDate">Initial value of the ModificationDate property.</param>
 /// <param name="categoryId">Initial value of the CategoryId property.</param>
 public static Product CreateProduct(global::System.Int32 id, global::System.String title, global::System.Double price, global::System.Int32 count, global::System.DateTime creationDate, global::System.DateTime modificationDate, global::System.Int32 categoryId)
 {
     Product product = new Product();
     product.Id = id;
     product.Title = title;
     product.Price = price;
     product.Count = count;
     product.CreationDate = creationDate;
     product.ModificationDate = modificationDate;
     product.CategoryId = categoryId;
     return product;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Product EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProduct(Product product)
 {
     base.AddObject("Product", product);
 }