/// <summary>
 /// Create a new Product object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="barCode">Initial value of the BarCode property.</param>
 /// <param name="version">Initial value of the Version property.</param>
 /// <param name="manufacturer">Initial value of the Manufacturer property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="productCategoryId">Initial value of the ProductCategoryId property.</param>
 public static Product CreateProduct(global::System.Int32 id, global::System.String name, global::System.String barCode, global::System.Int32 version, global::System.String manufacturer, global::System.Decimal price, global::System.Int32 productCategoryId)
 {
     Product product = new Product();
     product.Id = id;
     product.Name = name;
     product.BarCode = barCode;
     product.Version = version;
     product.Manufacturer = manufacturer;
     product.Price = price;
     product.ProductCategoryId = productCategoryId;
     return product;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Products EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProducts(Product product)
 {
     base.AddObject("Products", product);
 }