Jazyk

OperationExecutor.AddAndApplyMigration Konstruktor

Definice

Inicializuje novou instanci OperationExecutor.AddAndApplyMigration třídy.

public AddAndApplyMigration(Microsoft.EntityFrameworkCore.Design.OperationExecutor executor, Microsoft.EntityFrameworkCore.Design.IOperationResultHandler resultHandler, System.Collections.IDictionary args);
new Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddAndApplyMigration : Microsoft.EntityFrameworkCore.Design.OperationExecutor * Microsoft.EntityFrameworkCore.Design.IOperationResultHandler * System.Collections.IDictionary -> Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddAndApplyMigration
Public Sub New (executor As OperationExecutor, resultHandler As IOperationResultHandler, args As IDictionary)

Parametry

executor
OperationExecutor

Exekutor operace.

args
IDictionary

Argumenty operace.

Poznámky

Argumenty podporované args následujícími argumenty:

name--Název migrace.

outputDir--Adresář pro vložení souborů. Cesty jsou relativní k adresáři projektu.

contextType--To DbContext se má použít.

namespace--Obor názvů, který se má použít pro migraci.

connectionString--Connection string do databáze. Výchozí je ten uvedený v Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions.AddDbContext nebo OnConfiguring(DbContextOptionsBuilder).

Platí pro