Ejemplo n.º 1
0
        private void ThrowIfConflictingDataSourceReversalSettingExists(DataSourceReversalSetting setting)
        {
            if ((_dataSourceReversalSettings == null) && !setting.Reverse)
            {
                throw new MappingConfigurationException("Configured data source reversal is disabled by default");
            }

            ThrowIfConflictingItemExists(
                setting,
                _dataSourceReversalSettings,
                (s, conflicting) => conflicting.GetConflictMessage(s));
        }
Ejemplo n.º 2
0
        public void Add(DataSourceReversalSetting setting)
        {
            ThrowIfConflictingDataSourceReversalSettingExists(setting);

            DataSourceReversalSettings.AddThenSort(setting);
        }