TestSqliteModelSource
TestSqliteModelSource
Class
Definition
public class TestSqliteModelSource : SqliteModelSource, IModelSource
Public Class TestSqliteModelSource
Inherits SqliteModelSource
Implements IModelSource
- Inheritance
-
System.ObjectSystem.ObjectTestSqliteModelSourceTestSqliteModelSource
- Implements
Constructors
TestSqliteModelSource(Action, IDbSetFinder, ICoreConventionSetBuilder)
TestSqliteModelSource(Action(Of ModelBuilder), IDbSetFinder, ICoreConventionSetBuilder)
public TestSqliteModelSource(Action<ModelBuilder> onModelCreating, IDbSetFinder setFinder, ICoreConventionSetBuilder coreConventionSetBuilder)
Public Sub New(onModelCreating As Action(Of ModelBuilder), setFinder As IDbSetFinder, coreConventionSetBuilder As ICoreConventionSetBuilder)
- onModelCreating
- System.Action<ModelBuilder> System.Action(Of ModelBuilder)
- setFinder
- IDbSetFinder IDbSetFinder
- coreConventionSetBuilder
- ICoreConventionSetBuilder ICoreConventionSetBuilder
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)FindSets(ModelBuilder, DbContext) FindSets(ModelBuilder, DbContext)
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.
(Inherited from RelationalModelSource)
GetFactory(Action)
GetFactory(Action(Of ModelBuilder))
public static Func<IServiceProvider, SqliteModelSource> GetFactory(Action<ModelBuilder> onModelCreating)
Public Shared Function GetFactory(onModelCreating As Action(Of ModelBuilder)) As Func(Of IServiceProvider, SqliteModelSource)
- onModelCreating
- System.Action<ModelBuilder> System.Action(Of ModelBuilder)
GetModel(DbContext, IConventionSetBuilder, IModelValidator) GetModel(DbContext, IConventionSetBuilder, IModelValidator)
public override IModel GetModel(DbContext context, IConventionSetBuilder conventionSetBuilder, IModelValidator validator)
Public Overrides Function GetModel(context As DbContext, conventionSetBuilder As IConventionSetBuilder, validator As IModelValidator) As IModel
- conventionSetBuilder
- IConventionSetBuilder IConventionSetBuilder
- validator
- IModelValidator IModelValidator
- Overrides
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)