/// <summary> /// Create a new Product object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="description">Initial value of the description property.</param> /// <param name="cost">Initial value of the cost property.</param> /// <param name="salesPrice">Initial value of the salesPrice property.</param> public static Product CreateProduct(global::System.Int32 id, global::System.String description, global::System.Double cost, global::System.Double salesPrice) { Product product = new Product(); product.id = id; product.description = description; product.cost = cost; product.salesPrice = salesPrice; return product; }
/// <summary> /// Deprecated Method for adding a new object to the Product EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProduct(Product product) { base.AddObject("Product", product); }