InMemoryConventionSetBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A builder for building conventions for th in-memory provider.
public class InMemoryConventionSetBuilder : Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilder
type InMemoryConventionSetBuilder = class
inherit ProviderConventionSetBuilder
Public Class InMemoryConventionSetBuilder
Inherits ProviderConventionSetBuilder
- Inheritance
Remarks
The service lifetime is Scoped and multiple registrations are allowed. This means that each DbContext instance will use its own set of instances of this service. The implementations may depend on other services registered with any lifetime. The implementations do not need to be thread-safe.
See Model building conventions, and The EF Core in-memory database provider for more information and examples.
Constructors
InMemoryConventionSetBuilder(ProviderConventionSetBuilderDependencies) |
Creates a new InMemoryConventionSetBuilder instance. |
Properties
Dependencies |
Dependencies for this service. (Inherited from ProviderConventionSetBuilder) |
Methods
Build() |
Call this method to build a ConventionSet for the in-memory provider when using the ModelBuilder outside of OnModelCreating(ModelBuilder). |
CreateConventionSet() |
Builds and returns the convention set for the current database provider. |
CreateConventionSet() |
Builds and returns the convention set for the current database provider. (Inherited from ProviderConventionSetBuilder) |
CreateModelBuilder() |
Call this method to build a ModelBuilder for SQLite outside of OnModelCreating(ModelBuilder). |
ReplaceConvention<TConvention,TImplementation>(IList<TConvention>, TImplementation) |
Replaces an existing convention with a derived convention. (Inherited from ProviderConventionSetBuilder) |
ReplaceConvention<TConvention,TImplementation>(List<TConvention>, TImplementation) |
Replaces an existing convention with a derived convention. (Inherited from ProviderConventionSetBuilder) |
Applies to
Entity Framework