Dil

OperationExecutor.OptimizeContext Oluşturucu

Tanım

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

public OptimizeContext(Microsoft.EntityFrameworkCore.Design.OperationExecutor executor, Microsoft.EntityFrameworkCore.Design.IOperationResultHandler resultHandler, System.Collections.IDictionary args);
new Microsoft.EntityFrameworkCore.Design.OperationExecutor.OptimizeContext : Microsoft.EntityFrameworkCore.Design.OperationExecutor * Microsoft.EntityFrameworkCore.Design.IOperationResultHandler * System.Collections.IDictionary -> Microsoft.EntityFrameworkCore.Design.OperationExecutor.OptimizeContext
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:

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

modelNamespace--Oluşturulan modelin ad alanı.

contextType DbContext--Kullanılacak tür.

suffix--Oluşturulan tüm dosyalara eklenecek sonek.

scaffoldModel--DbContext'ten derlenmiş bir model oluşturulup oluşturulmayacağı.

precompileQueries--Önceden derlenmiş sorgular için kod oluşturulup oluşturulmayacağı.

Şunlara uygulanır