/// <summary> /// Deprecated Method for adding a new object to the Products EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProducts(Products products) { base.AddObject("Products", products); }
/// <summary> /// Create a new Products object. /// </summary> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="category">Initial value of the Category property.</param> /// <param name="price">Initial value of the Price property.</param> public static Products CreateProducts(global::System.Int32 productID, global::System.String name, global::System.String description, global::System.String category, global::System.Decimal price) { Products products = new Products(); products.ProductID = productID; products.Name = name; products.Description = description; products.Category = category; products.Price = price; return products; }