Share via


SqliteConventionSetBuilder Class

Definition

A builder for building conventions for SQLite.

public class SqliteConventionSetBuilder : Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.RelationalConventionSetBuilder
public class SqliteConventionSetBuilder : Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.RelationalConventionSetBuilder
type SqliteConventionSetBuilder = class
    inherit RelationalConventionSetBuilder
Public Class SqliteConventionSetBuilder
Inherits RelationalConventionSetBuilder
Inheritance
Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.RelationalConventionSetBuilder
SqliteConventionSetBuilder
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 Accessing SQLite databases with EF Core for more information and examples.

Constructors

SqliteConventionSetBuilder(IRelationalTypeMapper, ICurrentDbContext, IDbSetFinder)
SqliteConventionSetBuilder(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Creates a new SqliteConventionSetBuilder instance.

SqliteConventionSetBuilder(RelationalConventionSetBuilderDependencies)

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.

Properties

Dependencies

Dependencies for this service.

(Inherited from ProviderConventionSetBuilder)
RelationalDependencies

Relational provider-specific dependencies for this service.

(Inherited from RelationalConventionSetBuilder)

Methods

Build()

Call this method to build a ConventionSet for SQLite 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 RelationalConventionSetBuilder)
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