예제 #1
0
		public static dataModel.TierPriceEntity ToDataModel(this coreModel.TierPrice tierPrice)
		{
			if (tierPrice == null)
				throw new ArgumentNullException("tierPrice");

			var retVal = new dataModel.TierPriceEntity();
			retVal.InjectFrom(tierPrice);

			return retVal;
		}
예제 #2
0
        public static dataModel.TierPriceEntity ToDataModel(this coreModel.TierPrice tierPrice)
        {
            if (tierPrice == null)
            {
                throw new ArgumentNullException("tierPrice");
            }

            var retVal = new dataModel.TierPriceEntity();

            retVal.InjectFrom(tierPrice);

            return(retVal);
        }
예제 #3
0
        public static coreModel.TierPrice ToCoreModel(this dataModel.TierPriceEntity dbEntity)
        {
            if (dbEntity == null)
            {
                throw new ArgumentNullException("dbEntity");
            }

            var retVal = new coreModel.TierPrice();

            retVal.InjectFrom(dbEntity);

            return(retVal);
        }
예제 #4
0
 public virtual void Patch(TierPriceEntity target)
 {
     target.Price    = Price;
     target.Quantity = Quantity;
 }