partial void OnRetailEcoResCategoryChanging(global::Microsoft.Dynamics.DataEntities.RetailEcoResCategory value);
public static RetailProductHierarchyCategory CreateRetailProductHierarchyCategory(string categoryName, string categoryHierarchyName, long categoryRecordId, long parentCategoryRecordId, global::Microsoft.Dynamics.DataEntities.ProductCategoryHierarchy productCategoryHierarchy, global::Microsoft.Dynamics.DataEntities.RetailEcoResCategory retailEcoResCategory) { RetailProductHierarchyCategory retailProductHierarchyCategory = new RetailProductHierarchyCategory(); retailProductHierarchyCategory.CategoryName = categoryName; retailProductHierarchyCategory.CategoryHierarchyName = categoryHierarchyName; retailProductHierarchyCategory.CategoryRecordId = categoryRecordId; retailProductHierarchyCategory.ParentCategoryRecordId = parentCategoryRecordId; if ((productCategoryHierarchy == null)) { throw new global::System.ArgumentNullException("productCategoryHierarchy"); } retailProductHierarchyCategory.ProductCategoryHierarchy = productCategoryHierarchy; if ((retailEcoResCategory == null)) { throw new global::System.ArgumentNullException("retailEcoResCategory"); } retailProductHierarchyCategory.RetailEcoResCategory = retailEcoResCategory; return(retailProductHierarchyCategory); }