Partager via


OperationExecutor.OptimizeContext Constructor

Definition

Initializes a new instance of the OperationExecutor.OptimizeContext class.

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)

Parameters

executor
OperationExecutor

The operation executor.

args
IDictionary

The operation arguments.

Remarks

The arguments supported by args are:

outputDir--The directory to put files in. Paths are relative to the project directory.

modelNamespace--The namespace of the generated model.

contextType--The DbContext type to use.

suffix--The suffix to add to all the generated files.

scaffoldModel--Whether to generate a compiled model from the DbContext.

precompileQueries--Whether to generate code for precompiled queries.

Applies to