OperationExecutor.ScaffoldContext Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
|
OperationExecutor.ScaffoldContext(OperationExecutor, IOperationResultHandler, IDictionary)
- Source:
- OperationExecutor.cs
- Source:
- OperationExecutor.cs
- Source:
- OperationExecutor.cs
- Source:
- OperationExecutor.cs
- Source:
- OperationExecutor.cs
- Source:
- OperationExecutor.cs
- Source:
- OperationExecutor.cs
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.
- resultHandler
- IOperationResultHandler
- 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)
- Source:
- OperationExecutor.cs
- Source:
- OperationExecutor.cs
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
- args
- IDictionary
The operation arguments.
Applies to
Entity Framework