SqliteDatabaseCreator SqliteDatabaseCreator 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 SqliteDatabaseCreator : RelationalDatabaseCreator, IRelationalDatabaseCreator, IDatabaseCreator, IServiceInjectionSite
Public Class SqliteDatabaseCreator
    Inherits RelationalDatabaseCreator
    Implements IRelationalDatabaseCreator, IDatabaseCreator, IServiceInjectionSite
Inheritance
System.ObjectSystem.Object
SqliteDatabaseCreatorSqliteDatabaseCreator
Implements

Constructors

SqliteDatabaseCreator(SqliteRelationalConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, IModel, IRawSqlCommandBuilder, IExecutionStrategyFactory) SqliteDatabaseCreator(SqliteRelationalConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, IModel, IRawSqlCommandBuilder, IExecutionStrategyFactory)

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.

Methods

Create() Create()

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.

CreateAsync(CancellationToken) CreateAsync(CancellationToken)

Asynchronously creates the physical database. Does not attempt to populate it with any schema.

(Inherited from RelationalDatabaseCreator)
CreateTables() CreateTables()

Creates all tables for the current model in the database. No attempt is made to incrementally update the schema. It is assumed that none of the tables exist in the database.

(Inherited from RelationalDatabaseCreator)
CreateTablesAsync(CancellationToken) CreateTablesAsync(CancellationToken)

Asynchronously creates all tables for the current model in the database. No attempt is made to incrementally update the schema. It is assumed that none of the tables exist in the database.

(Inherited from RelationalDatabaseCreator)
Delete() Delete()

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.

DeleteAsync(CancellationToken) DeleteAsync(CancellationToken)

Asynchronously deletes the physical database.

(Inherited from RelationalDatabaseCreator)
EnsureCreated() EnsureCreated()

Ensures that the database for the context exists. If it exists, no action is taken. If it does not exist then the database and all its schema are created. If the database exists, then no effort is made to ensure it is compatible with the model for this context.

(Inherited from RelationalDatabaseCreator)
EnsureCreatedAsync(CancellationToken) EnsureCreatedAsync(CancellationToken)

Asynchronously ensures that the database for the context exists. If it exists, no action is taken. If it does not exist then the database and all its schema are created. If the database exists, then no effort is made to ensure it is compatible with the model for this context.

(Inherited from RelationalDatabaseCreator)
EnsureDeleted() EnsureDeleted()

Ensures that the database for the context does not exist. If it does not exist, no action is taken. If it does exist then the database is deleted.

Warning: The entire database is deleted an no effort is made to remove just the database objects that are used by the model for this context.

(Inherited from RelationalDatabaseCreator)
EnsureDeletedAsync(CancellationToken) EnsureDeletedAsync(CancellationToken)

Asynchronously ensures that the database for the context does not exist. If it does not exist, no action is taken. If it does exist then the database is deleted.

Warning: The entire database is deleted an no effort is made to remove just the database objects that are used by the model for this context.

(Inherited from RelationalDatabaseCreator)
System.Object.Equals(System.Object) System.Object.Equals(System.Object) Inherited from System.Object
System.Object.Equals(System.Object, System.Object) System.Object.Equals(System.Object, System.Object) Inherited from System.Object
Exists() Exists()

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.

ExistsAsync(CancellationToken) ExistsAsync(CancellationToken)

Asynchronously determines whether the physical database exists. No attempt is made to determine if the database contains the schema for the current model.

(Inherited from RelationalDatabaseCreator)
GetCreateTablesCommands() GetCreateTablesCommands()

Gets the commands that will create all tables from the model.

(Inherited from RelationalDatabaseCreator)
System.Object.GetHashCode() System.Object.GetHashCode() Inherited from System.Object
System.Object.GetType() System.Object.GetType() Inherited from System.Object
HasTables() HasTables()

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.

HasTablesAsync(CancellationToken) HasTablesAsync(CancellationToken)

Asynchronously determines whether the database contains any tables. No attempt is made to determine if tables belong to the current model or not.

(Inherited from RelationalDatabaseCreator)
System.Object.MemberwiseClone() System.Object.MemberwiseClone() Inherited from System.Object
System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) Inherited from System.Object
System.Object.ToString() System.Object.ToString() Inherited from System.Object

Properties

Connection Connection

Gets the connection for the database.

(Inherited from RelationalDatabaseCreator)
ExecutionStrategyFactory ExecutionStrategyFactory

Gets the IExecutionStrategyFactory to be used.

(Inherited from RelationalDatabaseCreator)
MigrationCommandExecutor MigrationCommandExecutor

Gets the IMigrationCommandExecutor to be used.

(Inherited from RelationalDatabaseCreator)
Model Model

Gets the model for the context this creator is being used with.

(Inherited from RelationalDatabaseCreator)

Explicit Interface Implementations

IServiceInjectionSite.InjectServices(IServiceProvider) Microsoft.EntityFrameworkCore.Internal.IServiceInjectionSite.InjectServices(IServiceProvider)

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 RelationalDatabaseCreator)