IModelSource IModelSource Interface

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.

Syntax

Declaration

public interface IModelSourcePublic Interface IModelSource

Methods summary

Gets the model to be used.

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

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.dll