Dil

OperationExecutor.AddAndApplyMigration Oluşturucu

Tanım

OperationExecutor.AddAndApplyMigration sınıfının yeni bir örneğini başlatır.

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)

Parametreler

executor
OperationExecutor

İşlem yürütücüsü.

args
IDictionary

İşlem bağımsız değişkenleri.

Açıklamalar

tarafından args desteklenen bağımsız değişkenler şunlardır:

name--Geçişin adı.

outputDir--Dosyaları yerleştirecek dizin. Yollar proje dizinine göredir.

contextType DbContext--Kullanılacak.

namespace--Geçiş için kullanılacak ad alanı.

connectionString--Veritabanına bağlantı dizesi. Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions.AddDbContext veya OnConfiguring(DbContextOptionsBuilder) içinde belirtilen değere varsayılan olarak ayarlanır.

Şunlara uygulanır