Share via


IConventionSetBuilder Interface

Definition

A service on the EF internal service provider that creates the ConventionSet that will be used by the current DbContext instance.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public interface IConventionSetBuilder
type IConventionSetBuilder = interface
Public Interface IConventionSetBuilder

Remarks

The service lifetime is Scoped. This means that each DbContext instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.

See Model building conventions for more information and examples.

Methods

CreateConventionSet()

Builds and returns the convention set to use.

Applies to