Ejemplo n.º 1
0
        public static dataModel.Currency ToDataModel(this coreModel.Currency currency)
        {
            var retVal = new dataModel.Currency();

            retVal.InjectFrom(currency);
            return(retVal);
        }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
        /// <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);
        }
Ejemplo n.º 4
0
 public static dataModel.Currency ToDataModel(this coreModel.Currency currency)
 {
     var retVal = new dataModel.Currency();
     retVal.InjectFrom(currency);
     return retVal;
 }