/// <summary>
 /// Deprecated Method for adding a new object to the PRODUCTGROUPS EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPRODUCTGROUPS(ProductGroup productGroup)
 {
     base.AddObject("PRODUCTGROUPS", productGroup);
 }
 /// <summary>
 /// Create a new ProductGroup object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 public static ProductGroup CreateProductGroup(global::System.Int32 id)
 {
     ProductGroup productGroup = new ProductGroup();
     productGroup.Id = id;
     return productGroup;
 }
 private bool FilterParentProductGroup(ProductGroup entity)
 {
     return (entity.Id == this.ParentProductId);
 }
 private bool FilterChildrenProductGroups(ProductGroup entity)
 {
     return (entity.ParentProductId == this.Id);
 }
 private void DetachChildrenProductGroups(ProductGroup entity)
 {
     entity.ParentProductGroup = null;
 }
 private void AttachChildrenProductGroups(ProductGroup entity)
 {
     entity.ParentProductGroup = this;
 }