Exemple #1
0
        public static RetailChannelPriceGroup CreateRetailChannelPriceGroup(string groupCode,
                                                                            string retailChannelId,
                                                                            global::Microsoft.Dynamics.DataEntities.OnlineChannel onlineChannel,
                                                                            global::Microsoft.Dynamics.DataEntities.RetailCallCenter retailCallCenter,
                                                                            global::Microsoft.Dynamics.DataEntities.RetailChannel retailChannel,
                                                                            global::Microsoft.Dynamics.DataEntities.RetailStore retailStore)
        {
            RetailChannelPriceGroup retailChannelPriceGroup = new RetailChannelPriceGroup();

            retailChannelPriceGroup.GroupCode       = groupCode;
            retailChannelPriceGroup.RetailChannelId = retailChannelId;
            if ((onlineChannel == null))
            {
                throw new global::System.ArgumentNullException("onlineChannel");
            }
            retailChannelPriceGroup.OnlineChannel = onlineChannel;
            if ((retailCallCenter == null))
            {
                throw new global::System.ArgumentNullException("retailCallCenter");
            }
            retailChannelPriceGroup.RetailCallCenter = retailCallCenter;
            if ((retailChannel == null))
            {
                throw new global::System.ArgumentNullException("retailChannel");
            }
            retailChannelPriceGroup.RetailChannel = retailChannel;
            if ((retailStore == null))
            {
                throw new global::System.ArgumentNullException("retailStore");
            }
            retailChannelPriceGroup.RetailStore = retailStore;
            return(retailChannelPriceGroup);
        }
Exemple #2
0
 partial void OnRetailCallCenterChanging(global::Microsoft.Dynamics.DataEntities.RetailCallCenter value);