コード例 #1
0
        public static coreModel.TierPrice ToCoreModel(this webModel.TierPrice tierPrice)
        {
            var retVal = new coreModel.TierPrice();

            retVal.InjectFrom(tierPrice);
            return(retVal);
        }
コード例 #2
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;
		}
コード例 #3
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);
        }
コード例 #4
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);
        }
コード例 #5
0
 public static coreModel.TierPrice ToCoreModel(this webModel.TierPrice tierPrice)
 {
     var retVal = new coreModel.TierPrice();
     retVal.InjectFrom(tierPrice);
     return retVal;
 }