SqlServerDatabaseCreatorTest.TestDatabaseCreator SqlServerDatabaseCreatorTest.TestDatabaseCreator Class

Definition

public class TestDatabaseCreator : SqlServerDatabaseCreator, IRelationalDatabaseCreator, IDatabaseCreator, IServiceInjectionSite
Public Class TestDatabaseCreator
    Inherits SqlServerDatabaseCreator
    Implements IRelationalDatabaseCreator, IDatabaseCreator, IServiceInjectionSite
Inheritance
System.ObjectSystem.Object
SqlServerDatabaseCreatorTest.TestDatabaseCreatorSqlServerDatabaseCreatorTest.TestDatabaseCreator
Implements

Constructors

TestDatabaseCreator(ISqlServerConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, IModel, IRawSqlCommandBuilder, IExecutionStrategyFactory) TestDatabaseCreator(ISqlServerConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, IModel, IRawSqlCommandBuilder, IExecutionStrategyFactory)

public TestDatabaseCreator(ISqlServerConnection connection, IMigrationsModelDiffer modelDiffer, IMigrationsSqlGenerator sqlGenerator, IMigrationCommandExecutor migrationCommandExecutor, IModel model, IRawSqlCommandBuilder rawSqlCommandBuilder, IExecutionStrategyFactory executionStrategyFactory)
Public Sub New(connection As ISqlServerConnection, modelDiffer As IMigrationsModelDiffer, sqlGenerator As IMigrationsSqlGenerator, migrationCommandExecutor As IMigrationCommandExecutor, model As IModel, rawSqlCommandBuilder As IRawSqlCommandBuilder, executionStrategyFactory As IExecutionStrategyFactory)
Parameters
model
IModel IModel

Properties

Connection Connection

Gets the connection for the database.

(Inherited from RelationalDatabaseCreator)

ExecutionStrategyFactory ExecutionStrategyFactory

public IExecutionStrategyFactory ExecutionStrategyFactory { get; }
Public ReadOnly Property ExecutionStrategyFactory As IExecutionStrategyFactory

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)

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.

(Inherited from SqlServerDatabaseCreator)

CreateAsync(CancellationToken) CreateAsync(CancellationToken)

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

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.

(Inherited from SqlServerDatabaseCreator)

DeleteAsync(CancellationToken) DeleteAsync(CancellationToken)

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

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)

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, 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.

(Inherited from SqlServerDatabaseCreator)

ExistsAsync(CancellationToken) ExistsAsync(CancellationToken)

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

GetCreateTablesCommands() GetCreateTablesCommands()

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

(Inherited from RelationalDatabaseCreator)

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() 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.

(Inherited from SqlServerDatabaseCreator)

HasTablesAsync(CancellationToken) HasTablesAsync(CancellationToken)

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

HasTablesAsyncBase(CancellationToken) HasTablesAsyncBase(CancellationToken)

public Task<bool> HasTablesAsyncBase(CancellationToken cancellationToken = null)
Public Function HasTablesAsyncBase(cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)
Parameters
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<System.Boolean> System.Threading.Tasks.Task(Of System.Boolean)

HasTablesBase() HasTablesBase()

public bool HasTablesBase()
Public Function HasTablesBase As Boolean
Returns
System.Boolean System.Boolean

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

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

Inherited from System.Object

ToString() ToString()

Inherited from System.Object

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)