public static dataModel.Currency ToDataModel(this coreModel.Currency currency) { var retVal = new dataModel.Currency(); retVal.InjectFrom(currency); return(retVal); }
public virtual void Patch(dataModel.Currency target) { target.Code = Code; target.Name = Name; target.IsPrimary = IsPrimary; target.ExchangeRate = ExchangeRate; target.Symbol = Symbol; target.CustomFormatting = CustomFormatting; }
/// <summary> /// Patch changes /// </summary> /// <param name="source"></param> /// <param name="target"></param> public static void Patch(this dataModel.Currency source, dataModel.Currency target) { if (target == null) { throw new ArgumentNullException("target"); } var patchInjection = new PatchInjection <dataModel.Currency>(x => x.Name, x => x.Symbol, x => x.ExchangeRate, x => x.IsPrimary, x => x.CustomFormatting); target.InjectFrom(patchInjection, source); }
public static dataModel.Currency ToDataModel(this coreModel.Currency currency) { var retVal = new dataModel.Currency(); retVal.InjectFrom(currency); return retVal; }