コード例 #1
0
 partial void OnRetailEcoResCategoryChanging(global::Microsoft.Dynamics.DataEntities.RetailEcoResCategory value);
コード例 #2
0
        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);
        }