IModelSource 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.

public interface IModelSource
Public Interface IModelSource

Methods

GetModel(DbContext, IConventionSetBuilder, IModelValidator) GetModel(DbContext, IConventionSetBuilder, IModelValidator)

Gets the model to be used.

IModel GetModel(DbContext context, IConventionSetBuilder conventionSetBuilder, IModelValidator validator)
Function GetModel(context As DbContext, conventionSetBuilder As IConventionSetBuilder, validator As IModelValidator) As IModel
Parameters
context
DbContext DbContext

The context the model is being produced for.

conventionSetBuilder
IConventionSetBuilder IConventionSetBuilder

The convention set to use when creating the model.

validator
IModelValidator IModelValidator

The validator to verify the model can be successfully used with the context.

Returns

The model to be used.