IModelSource Interface

Definition

Produces an IModel based on a context. This is typically implemented by database providers to ensure that any conventions and validation specific to their database are used.

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

The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.

public interface IModelSource
type IModelSource = interface
Public Interface IModelSource
Derived

Methods

GetModel(DbContext, IConventionSetBuilder)
Obsolete.

Gets the model to be used.

GetModel(DbContext, IConventionSetBuilder, IModelValidator)

Gets the model to be used.

GetModel(DbContext, IConventionSetBuilder, IModelValidator)

Gets the model to be used.

GetModel(DbContext, IConventionSetBuilder, ModelDependencies)

Gets the model to be used.

Applies to