/// <summary>
 /// Deprecated Method for adding a new object to the ProductItems EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProductItems(ProductItem productItem)
 {
     base.AddObject("ProductItems", productItem);
 }
 /// <summary>
 /// Create a new ProductItem object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="receivedDate">Initial value of the ReceivedDate property.</param>
 /// <param name="expiryDate">Initial value of the ExpiryDate property.</param>
 /// <param name="purchasedDate">Initial value of the PurchasedDate property.</param>
 /// <param name="productCategoryId">Initial value of the ProductCategoryId property.</param>
 /// <param name="shoppingCartId">Initial value of the ShoppingCartId property.</param>
 public static ProductItem CreateProductItem(global::System.Int32 id, global::System.DateTime receivedDate, global::System.Decimal expiryDate, global::System.DateTime purchasedDate, global::System.Int32 productCategoryId, global::System.Int32 shoppingCartId)
 {
     ProductItem productItem = new ProductItem();
     productItem.Id = id;
     productItem.ReceivedDate = receivedDate;
     productItem.ExpiryDate = expiryDate;
     productItem.PurchasedDate = purchasedDate;
     productItem.ProductCategoryId = productCategoryId;
     productItem.ShoppingCartId = shoppingCartId;
     return productItem;
 }