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
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
The convention set to use when creating the model.
The validator to verify the model can be successfully used with the context.