partial void OnRetailLoyaltyChanging(global::Microsoft.Dynamics.DataEntities.RetailLoyalty value);
public static RetailLoyaltyPriceGroup CreateRetailLoyaltyPriceGroup(string dataAreaId, string loyaltyName, string priceCustomerGroupCode, global::Microsoft.Dynamics.DataEntities.PriceCustomerGroup priceCustomerGroup, global::Microsoft.Dynamics.DataEntities.RetailLoyalty retailLoyalty) { RetailLoyaltyPriceGroup retailLoyaltyPriceGroup = new RetailLoyaltyPriceGroup(); retailLoyaltyPriceGroup.dataAreaId = dataAreaId; retailLoyaltyPriceGroup.LoyaltyName = loyaltyName; retailLoyaltyPriceGroup.PriceCustomerGroupCode = priceCustomerGroupCode; if ((priceCustomerGroup == null)) { throw new global::System.ArgumentNullException("priceCustomerGroup"); } retailLoyaltyPriceGroup.PriceCustomerGroup = priceCustomerGroup; if ((retailLoyalty == null)) { throw new global::System.ArgumentNullException("retailLoyalty"); } retailLoyaltyPriceGroup.RetailLoyalty = retailLoyalty; return(retailLoyaltyPriceGroup); }