public static dataModel.PricelistAssignment ToDataModel(this coreModel.PricelistAssignment assignment)
		{
			if (assignment == null)
				throw new ArgumentNullException("assignment");

			var retVal = new dataModel.PricelistAssignment();

			retVal.InjectFrom(assignment);

			return retVal;
		}
        /// <summary>
        /// Patch changes
        /// </summary>
        /// <param name="source"></param>
        /// <param name="target"></param>
        public static void Patch(this dataModel.PricelistAssignment source, dataModel.PricelistAssignment target)
        {
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }
            var patchInjection = new PatchInjection <dataModel.PricelistAssignment>(x => x.Name, x => x.Description,
                                                                                    x => x.StartDate, x => x.EndDate, x => x.CatalogId,
                                                                                    x => x.PricelistId, x => x.Priority, x => x.ConditionExpression);

            target.InjectFrom(patchInjection, source);
        }
        public static dataModel.PricelistAssignment ToDataModel(this coreModel.PricelistAssignment assignment)
        {
            if (assignment == null)
            {
                throw new ArgumentNullException("assignment");
            }

            var retVal = new dataModel.PricelistAssignment();

            retVal.InjectFrom(assignment);

            return(retVal);
        }