Share via


RelationalDatabaseCreator Constructors

Definition

Overloads

RelationalDatabaseCreator(RelationalDatabaseCreatorDependencies)

Initializes a new instance of the RelationalDatabaseCreator class.

RelationalDatabaseCreator(IModel, IRelationalConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor)
Obsolete.

Initializes a new instance of the RelationalDatabaseCreator class.

RelationalDatabaseCreator(IModel, IRelationalConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, IExecutionStrategyFactory)

Initializes a new instance of the RelationalDatabaseCreator class.

RelationalDatabaseCreator(RelationalDatabaseCreatorDependencies)

Initializes a new instance of the RelationalDatabaseCreator class.

protected RelationalDatabaseCreator (Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies dependencies);
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator : Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator
Protected Sub New (dependencies As RelationalDatabaseCreatorDependencies)

Parameters

dependencies
RelationalDatabaseCreatorDependencies

Parameter object containing dependencies for this service.

Applies to

RelationalDatabaseCreator(IModel, IRelationalConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor)

Caution

Derived classes must be updated to call the new constructor with additional parameters.

Initializes a new instance of the RelationalDatabaseCreator class.

protected RelationalDatabaseCreator (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer modelDiffer, Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator migrationsSqlGenerator, Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor migrationCommandExecutor);
[System.Obsolete("Derived classes must be updated to call the new constructor with additional parameters.")]
protected RelationalDatabaseCreator (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer modelDiffer, Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator migrationsSqlGenerator, Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor migrationCommandExecutor);
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer * Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator * Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator
[<System.Obsolete("Derived classes must be updated to call the new constructor with additional parameters.")>]
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer * Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator * Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator
Protected Sub New (model As IModel, connection As IRelationalConnection, modelDiffer As IMigrationsModelDiffer, migrationsSqlGenerator As IMigrationsSqlGenerator, migrationCommandExecutor As IMigrationCommandExecutor)

Parameters

model
IModel

The IModel for the context this creator is being used with.

connection
IRelationalConnection

The IRelationalConnection to be used.

modelDiffer
IMigrationsModelDiffer

The IMigrationsModelDiffer to be used.

migrationsSqlGenerator
IMigrationsSqlGenerator

The IMigrationsSqlGenerator to be used.

migrationCommandExecutor
IMigrationCommandExecutor

The IMigrationCommandExecutor to be used.

Attributes

Applies to

RelationalDatabaseCreator(IModel, IRelationalConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, IExecutionStrategyFactory)

Initializes a new instance of the RelationalDatabaseCreator class.

protected RelationalDatabaseCreator (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer modelDiffer, Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator migrationsSqlGenerator, Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor migrationCommandExecutor, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactory);
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer * Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator * Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator
Protected Sub New (model As IModel, connection As IRelationalConnection, modelDiffer As IMigrationsModelDiffer, migrationsSqlGenerator As IMigrationsSqlGenerator, migrationCommandExecutor As IMigrationCommandExecutor, executionStrategyFactory As IExecutionStrategyFactory)

Parameters

model
IModel

The IModel for the context this creator is being used with.

connection
IRelationalConnection

The IRelationalConnection to be used.

modelDiffer
IMigrationsModelDiffer

The IMigrationsModelDiffer to be used.

migrationsSqlGenerator
IMigrationsSqlGenerator

The IMigrationsSqlGenerator to be used.

migrationCommandExecutor
IMigrationCommandExecutor

The IMigrationCommandExecutor to be used.

executionStrategyFactory
IExecutionStrategyFactory

The IExecutionStrategyFactory to be used.

Applies to