Microsoft.EntityFrameworkCore.Design Namespace

Classes

AnnotationCodeGenerator

Base class to be used by database providers when implementing an IAnnotationCodeGenerator

This implementation returns false for all 'IsHandledByConvention' methods and null for all 'GenerateFluentApi' methods. Providers should override for the annotations that they understand.

AnnotationCodeGeneratorDependencies

Service dependencies parameter class for AnnotationCodeGenerator

This type is typically used by database providers (and other extensions). It is generally not used in application code.

Do not construct instances of this class directly from either provider or application code as the constructor signature may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.

AttributeCodeFragment

Represents usage of an attribute.

DbContextActivator

Used to instantiate DbContext types at design time.

DesignTimeProviderServicesAttribute

Identifies where to find the design time services for a given database provider. This attribute should be present in the primary assembly of the database provider.

This attribute is typically used by database providers (and other extensions). It is generally not used in application code.

DesignTimeServiceCollectionExtensions

Extension methods for adding Entity Framework Core design-time services to an IServiceCollection.

DesignTimeServicesReferenceAttribute

Identifies where to find additional design time services.

This attribute is typically used by design-time extensions. It is generally not used in application code.

MethodCallCodeFragment

Represents a call to a method.

NestedClosureCodeFragment

Represents a nested closure code fragment.

OperationException

Represents an exception whose stack trace should, by default, not be reported by the commands.

OperationExecutor

A facade for design-time operations.

Use the CreateInstance overloads on AppDomain and Activator with the nested types to execute operations.

OperationExecutor.AddMigration

Represents an operation to add a new migration.

OperationExecutor.DropDatabase

Represents an operation to drop the database.

OperationExecutor.GetContextInfo

Represents an operation to get information about a DbContext type.

OperationExecutor.GetContextType
OperationExecutor.GetContextTypes

Represents an operation to list available DbContext types.

OperationExecutor.GetMigrations

Represents an operation to list available migrations.

OperationExecutor.OperationBase

Represents an operation.

OperationExecutor.RemoveMigration

Represents an operation to remove the last migration.

OperationExecutor.ScaffoldContext

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

OperationExecutor.ScriptDbContext

Represents an operation to generate a SQL script from the DbContext.

OperationExecutor.ScriptMigration

Represents an operation to generate a SQL script from migrations.

OperationExecutor.UpdateDatabase

Represents an operation to update the database to a specified migration.

OperationReportHandler

Used to handle reported design-time activity.

OperationResultHandler

Used with OperationExecutor to handle operation results.

Interfaces

IAnnotationCodeGenerator

Implemented by database providers to control which IAnnotations need to have code generated (as opposed to being handled by convention) and then to generate the code if needed.

ICSharpHelper

Helper for generating C# code.

IDesignTimeDbContextFactory<TContext>

A factory for creating derived DbContext instances. Implement this interface to enable design-time services for context types that do not have a public default constructor. At design-time, derived DbContext instances can be created in order to enable specific design-time experiences such as Migrations. Design-time services will automatically discover implementations of this interface that are in the startup assembly or the same assembly as the derived context.

IDesignTimeServices

Enables configuring design-time services. Tools will automatically discover implementations of this interface that are in the startup assembly.

ILanguageBasedService

Represents a service that gets resolved based on the programming language it supports.

IOperationReportHandler

Used to handle reported design-time activity.

IOperationResultHandler

Used with OperationExecutor to handle operation results.

IPluralizer

Converts identifiers to the plural and singular equivalents.