Пример #1
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);
 }
Пример #2
0
 /// <summary>
 /// Create a new Product object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="imageSource">Initial value of the ImageSource property.</param>
 /// <param name="categoryId">Initial value of the CategoryId property.</param>
 /// <param name="layoutId">Initial value of the LayoutId property.</param>
 public static Product CreateProduct(global::System.Int32 id, global::System.String imageSource, global::System.Int32 categoryId, global::System.Int32 layoutId)
 {
     Product product = new Product();
     product.Id = id;
     product.ImageSource = imageSource;
     product.CategoryId = categoryId;
     product.LayoutId = layoutId;
     return product;
 }