/// <summary> /// Deprecated Method for adding a new object to the ProductGroup EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProductGroup(ProductGroup productGroup) { base.AddObject("ProductGroup", productGroup); }
/// <summary> /// Create a new ProductGroup object. /// </summary> /// <param name="productGroupID">Initial value of the ProductGroupID property.</param> /// <param name="name">Initial value of the Name property.</param> public static ProductGroup CreateProductGroup(global::System.Int32 productGroupID, global::System.String name) { ProductGroup productGroup = new ProductGroup(); productGroup.ProductGroupID = productGroupID; productGroup.Name = name; return productGroup; }