src/Shared/EntityFramework/ModelConfiguration/Configuration/ConventionsConfiguration.cs
/// <summary>
///     Disables one or more conventions for the <see cref="DbModelBuilder" />.
/// </summary>
/// <param name="conventions"> The conventions to be disabled. </param>
Disables one or more conventions for the .
Disables one or more conventions for the .
public void Remove(params IConvention[] conventions)
        {
            Check.NotNull(conventions, "conventions");
            Check.NotNull(conventions, "conventions");
            Debug.Assert(conventions.All(c => c != null));
            foreach (var c in conventions)
            {
                if (ConventionsTypeFilter.IsConfigurationConvention(c.GetType()))
                {
                    _configurationConventions.Remove(c);
                }
                if (ConventionsTypeFilter.IsConceptualModelConvention(c.GetType()))
                {
                    _conceptualModelConventions.Remove(c);
                }
                if (ConventionsTypeFilter.IsStoreModelConvention(c.GetType()))
                {
                    _storeModelConventions.Remove(c);
                }
                if (ConventionsTypeFilter.IsConceptualToStoreMappingConvention(c.GetType()))
                {
                    _conceptualToStoreMappingConventions.Remove(c);
                }
            }
        }
public void Remove ( params IConvention [ ] conventions ) { Check . NotNull ( conventions , " " ) ; Check . NotNull ( conventions , " " ) ; Debug . Assert ( conventions . All ( c => c != null ) ) ; foreach ( var c in conventions ) { if ( ConventionsTypeFilter . IsConfigurationConvention ( c . GetType ( ) ) ) { _configurationConventions . Remove ( c ) ; } if ( ConventionsTypeFilter . IsConceptualModelConvention ( c . GetType ( ) ) ) { _conceptualModelConventions . Remove ( c ) ; } if ( ConventionsTypeFilter . IsStoreModelConvention ( c . GetType ( ) ) ) { _storeModelConventions . Remove ( c ) ; } if ( ConventionsTypeFilter . IsConceptualToStoreMappingConvention ( c . GetType ( ) ) ) { _conceptualToStoreMappingConventions . Remove ( c ) ; } } }
Disables one or more conventions for the .
Disables one or more conventions for the .
conventions
The conventions to be disabled.
The conventions to be disabled .