partial void OnProductCategoryHierarchyChanging(global::Microsoft.Dynamics.DataEntities.ProductCategoryHierarchy value);
public static RetailCatalogProductAttributeValue CreateRetailCatalogProductAttributeValue(string catalogNumber, string categoryHierarchyName, string categoryName, string displayProductNumber, string attributeGroupName, string attributeName, string attributeTypeName, int integerValue, decimal decimalValue, global::System.DateTimeOffset dateTimeValue, decimal currencyValue, global::Microsoft.Dynamics.DataEntities.ProductCategory productCategory, global::Microsoft.Dynamics.DataEntities.ProductCategoryHierarchy productCategoryHierarchy, global::Microsoft.Dynamics.DataEntities.RetailCatalog retailCatalog, global::Microsoft.Dynamics.DataEntities.RetailCatalogProduct retailCatalogProduct) { RetailCatalogProductAttributeValue retailCatalogProductAttributeValue = new RetailCatalogProductAttributeValue(); retailCatalogProductAttributeValue.CatalogNumber = catalogNumber; retailCatalogProductAttributeValue.CategoryHierarchyName = categoryHierarchyName; retailCatalogProductAttributeValue.CategoryName = categoryName; retailCatalogProductAttributeValue.DisplayProductNumber = displayProductNumber; retailCatalogProductAttributeValue.AttributeGroupName = attributeGroupName; retailCatalogProductAttributeValue.AttributeName = attributeName; retailCatalogProductAttributeValue.AttributeTypeName = attributeTypeName; retailCatalogProductAttributeValue.IntegerValue = integerValue; retailCatalogProductAttributeValue.DecimalValue = decimalValue; retailCatalogProductAttributeValue.DateTimeValue = dateTimeValue; retailCatalogProductAttributeValue.CurrencyValue = currencyValue; if ((productCategory == null)) { throw new global::System.ArgumentNullException("productCategory"); } retailCatalogProductAttributeValue.ProductCategory = productCategory; if ((productCategoryHierarchy == null)) { throw new global::System.ArgumentNullException("productCategoryHierarchy"); } retailCatalogProductAttributeValue.ProductCategoryHierarchy = productCategoryHierarchy; if ((retailCatalog == null)) { throw new global::System.ArgumentNullException("retailCatalog"); } retailCatalogProductAttributeValue.RetailCatalog = retailCatalog; if ((retailCatalogProduct == null)) { throw new global::System.ArgumentNullException("retailCatalogProduct"); } retailCatalogProductAttributeValue.RetailCatalogProduct = retailCatalogProduct; return(retailCatalogProductAttributeValue); }
public static ProductCategory CreateProductCategory(string productCategoryHierarchyName, string categoryName, global::Microsoft.Dynamics.DataEntities.ProductCategoryHierarchy productCategoryHierarchy) { ProductCategory productCategory = new ProductCategory(); productCategory.ProductCategoryHierarchyName = productCategoryHierarchyName; productCategory.CategoryName = categoryName; if ((productCategoryHierarchy == null)) { throw new global::System.ArgumentNullException("productCategoryHierarchy"); } productCategory.ProductCategoryHierarchy = productCategoryHierarchy; return(productCategory); }
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); }