partial void OnProductAttributeChanging(global::Microsoft.Dynamics.DataEntities.ProductAttribute value);
public static ProductAttributeTranslation CreateProductAttributeTranslation(string productAttributeName, string productAttributeTypeName, string languageId, global::Microsoft.Dynamics.DataEntities.ProductAttribute productAttribute) { ProductAttributeTranslation productAttributeTranslation = new ProductAttributeTranslation(); productAttributeTranslation.ProductAttributeName = productAttributeName; productAttributeTranslation.ProductAttributeTypeName = productAttributeTypeName; productAttributeTranslation.LanguageId = languageId; if ((productAttribute == null)) { throw new global::System.ArgumentNullException("productAttribute"); } productAttributeTranslation.ProductAttribute = productAttribute; return productAttributeTranslation; }
public static AttributeMetadata CreateAttributeMetadata(string attributeName, string typeName, int xmlMetadataVersionNumber, global::Microsoft.Dynamics.DataEntities.ProductAttribute productAttribute) { AttributeMetadata attributeMetadata = new AttributeMetadata(); attributeMetadata.AttributeName = attributeName; attributeMetadata.TypeName = typeName; attributeMetadata.XmlMetadataVersionNumber = xmlMetadataVersionNumber; if ((productAttribute == null)) { throw new global::System.ArgumentNullException("productAttribute"); } attributeMetadata.ProductAttribute = productAttribute; return(attributeMetadata); }