/// <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); }
/// <summary> /// Patch changes /// </summary> /// <param name="source"></param> /// <param name="target"></param> public static void Patch(this dataModel.SeoUrlKeyword source, dataModel.SeoUrlKeyword target) { if (target == null) throw new ArgumentNullException("target"); var patchInjection = new PatchInjection<dataModel.SeoUrlKeyword>(x => x.ImageAltDescription, x => x.IsActive, x => x.Keyword, x => x.Language, x => x.MetaDescription, x => x.MetaKeywords, x => x.Title); target.InjectFrom(patchInjection, source); }
/// <summary> /// Patch changes /// </summary> /// <param name="source"></param> /// <param name="target"></param> public static void Patch(this dataModel.FulfillmentCenter source, dataModel.FulfillmentCenter target) { if (target == null) throw new ArgumentNullException("target"); var patchInjection = new PatchInjection<dataModel.FulfillmentCenter>(x => x.City, x => x.CountryCode, x => x.CountryName, x => x.DaytimePhoneNumber, x => x.Description, x => x.Line1, x => x.Line2, x => x.MaxReleasesPerPickBatch, x => x.Name, x => x.PickDelay, x => x.PostalCode, x => x.StateProvince); target.InjectFrom(patchInjection, source); }