Share via


OperationExecutor.ScaffoldContext Constructors

Definition

Overloads

OperationExecutor.ScaffoldContext(OperationExecutor, IOperationResultHandler, IDictionary)

Initializes a new instance of the OperationExecutor.ScaffoldContext class.

OperationExecutor.ScaffoldContext(OperationExecutor, Object, IDictionary)

Initializes a new instance of the OperationExecutor.ScaffoldContext class.

The arguments supported by args are:

connectionString--The connection string to the database.

provider--The provider to use.

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

outputDbContextDir--The directory to put DbContext file in. Paths are relative to the project directory.

dbContextClassName--The name of the DbContext to generate.

schemaFilters--The schemas of tables to generate entity types for.

tableFilters--The tables to generate entity types for.

useDataAnnotations--Use attributes to configure the model (where possible). If false, only the fluent API is used.

overwriteFiles--Overwrite existing files.

useDatabaseNames--Use table and column names directly from the database.

OperationExecutor.ScaffoldContext(OperationExecutor, IOperationResultHandler, IDictionary)

Initializes a new instance of the OperationExecutor.ScaffoldContext class.

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

connectionString--The connection string to the database.

provider--The provider to use.

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

outputDbContextDir--The directory to put DbContext file in. Paths are relative to the project directory.

dbContextClassName--The name of the DbContext to generate.

schemaFilters--The schemas of tables to generate entity types for.

tableFilters--The tables to generate entity types for.

useDataAnnotations--Use attributes to configure the model (where possible). If false, only the fluent API is used.

overwriteFiles--Overwrite existing files.

useDatabaseNames--Use table and column names directly from the database.

modelNamespace--Specify to override the namespace of the generated entity types.

contextNamespace--Specify to override the namespace of the generated DbContext class.

noPluralize--Don't use the pluralizer.

Applies to

OperationExecutor.ScaffoldContext(OperationExecutor, Object, IDictionary)

Initializes a new instance of the OperationExecutor.ScaffoldContext class.

The arguments supported by args are:

connectionString--The connection string to the database.

provider--The provider to use.

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

outputDbContextDir--The directory to put DbContext file in. Paths are relative to the project directory.

dbContextClassName--The name of the DbContext to generate.

schemaFilters--The schemas of tables to generate entity types for.

tableFilters--The tables to generate entity types for.

useDataAnnotations--Use attributes to configure the model (where possible). If false, only the fluent API is used.

overwriteFiles--Overwrite existing files.

useDatabaseNames--Use table and column names directly from the database.

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

Parameters

executor
OperationExecutor

The operation executor.

resultHandler
Object

The IOperationResultHandler.

args
IDictionary

The operation arguments.

Applies to