ConventionSetBuilder Class

Definition

Provides a simple API surface for configuring conventions.

public class ConventionSetBuilder
type ConventionSetBuilder = class
Public Class ConventionSetBuilder
Inheritance
ConventionSetBuilder

Remarks

Instances of this class are returned from methods when using the ModelConfigurationBuilder API and it is not designed to be directly constructed in your application code.

Constructors

ConventionSetBuilder(ConventionSet, IServiceProvider)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

Methods

Add(Func<IServiceProvider,IConvention>)

Adds a convention to the set.

Remove(Type)

Removes the convention of the given type.

Remove<TImplementaion>()

Remove the convention of the given type.

Replace<TImplementation>(Func<IServiceProvider,TImplementation>)

Replaces an existing convention with a derived convention. Also registers the new convention for any convention types not implemented by the existing convention.

Applies to