Share via


OperationExecutor.ScaffoldContext Class

Definition

Represents an operation to scaffold a DbContext and entity types for a database.

public class OperationExecutor.ScaffoldContext : Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase
type OperationExecutor.ScaffoldContext = class
    inherit OperationExecutor.OperationBase
Public Class OperationExecutor.ScaffoldContext
Inherits OperationExecutor.OperationBase
Inheritance
OperationExecutor.ScaffoldContext
Inheritance
OperationExecutor.ScaffoldContext

Constructors

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.

Methods

Execute(Action)

Executes an action passing exceptions to the IOperationResultHandler.

(Inherited from OperationExecutor.OperationBase)
Execute<T>(Func<IEnumerable<T>>)

Executes an action passing results or exceptions to the IOperationResultHandler.

(Inherited from OperationExecutor.OperationBase)
Execute<T>(Func<T>)

Executes an action passing the result or exceptions to the IOperationResultHandler.

(Inherited from OperationExecutor.OperationBase)

Applies to