public virtual void Patch(SettingEntity target)
        {
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }

            if (!SettingValues.IsNullCollection())
            {
                var comparer = AnonymousComparer.Create((SettingValueEntity x) => x.ToString(EnumUtility.SafeParse(x.ValueType, Core.Settings.SettingValueType.LongText), CultureInfo.InvariantCulture));
                SettingValues.Patch(target.SettingValues, comparer, (sourceSetting, targetSetting) => { });
            }
        }
Exemple #2
0
        public virtual void Patch(SettingEntity target)
        {
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }

            if (!this.SettingValues.IsNullCollection())
            {
                var comparer = AnonymousComparer.Create((SettingValueEntity x) => x.ToString(CultureInfo.InvariantCulture));
                this.SettingValues.Patch(target.SettingValues, comparer, (sourceSetting, targetSetting) => { });
            }
        }