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; }
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); }
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); }
public virtual void Patch(TierPriceEntity target) { target.Price = Price; target.Quantity = Quantity; }