InMemoryModelSource InMemoryModelSource Class

Definition

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public class InMemoryModelSource : ModelSource, IModelSource
Public Class InMemoryModelSource
    Inherits ModelSource
    Implements IModelSource
Inheritance
System.ObjectSystem.Object
InMemoryModelSourceInMemoryModelSource
Implements

Constructors

InMemoryModelSource(IDbSetFinder, ICoreConventionSetBuilder, IModelCustomizer, IModelCacheKeyFactory) InMemoryModelSource(IDbSetFinder, ICoreConventionSetBuilder, IModelCustomizer, IModelCacheKeyFactory)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public InMemoryModelSource(IDbSetFinder setFinder, ICoreConventionSetBuilder coreConventionSetBuilder, IModelCustomizer modelCustomizer, IModelCacheKeyFactory modelCacheKeyFactory)
Public Sub New(setFinder As IDbSetFinder, coreConventionSetBuilder As ICoreConventionSetBuilder, modelCustomizer As IModelCustomizer, modelCacheKeyFactory As IModelCacheKeyFactory)
Parameters

Properties

CoreConventionSetBuilder CoreConventionSetBuilder

Gets the ICoreConventionSetBuilder that will build the conventions to be used to build the model.

(Inherited from ModelSource)

ModelCacheKeyFactory ModelCacheKeyFactory

Gets the IModelCacheKeyFactory that will create keys used to store and lookup models the model cache.

(Inherited from ModelSource)

ModelCustomizer ModelCustomizer

Gets the IModelCustomizer that will perform additional configuration of the model in addition to what is discovered by convention.

(Inherited from ModelSource)

SetFinder SetFinder

Gets the IDbSetFinder that will locate the DbSet<TEntity> properties on the derived context.

(Inherited from ModelSource)

Methods

CreateConventionSet(IConventionSetBuilder) CreateConventionSet(IConventionSetBuilder)

Creates the convention set to be used for the model. Uses the CoreConventionSetBuilder if conventionSetBuilder is null.

(Inherited from ModelSource)

CreateModel(DbContext, IConventionSetBuilder, IModelValidator) CreateModel(DbContext, IConventionSetBuilder, IModelValidator)

Creates the model. This method is called when the model was not found in the cache.

(Inherited from ModelSource)

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

FindSets(ModelBuilder, DbContext) FindSets(ModelBuilder, DbContext)

Adds the entity types found in DbSet<TEntity> properties on the context to the model.

(Inherited from ModelSource)

GetHashCode() GetHashCode()

Inherited from System.Object

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

Returns the model from the cache, or creates a model if it is not present in the cache.

(Inherited from ModelSource)

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object