다음을 통해 공유


Microsoft.EntityFrameworkCore.Design Namespace

Classes

AnnotationCodeGenerator

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

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.

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.

EntityFrameworkDesignServicesBuilder

A builder API designed for database providers to use when implementing IDesignTimeServices.

EntityFrameworkRelationalDesignServicesBuilder

A builder API designed for database providers to use when implementing IDesignTimeServices.

FluentApiCodeFragment

Represents a fluent API method call.

MethodCallCodeFragment

Represents a call to a method.

MethodCallCodeFragmentExtensions

Design-time MethodCallCodeFragment extensions.

NamespaceComparer

A custom string comparer to sort using statements to have System prefixed namespaces first.

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.

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.HasPendingModelChanges

Represents an operation to check if there are any pending migrations.

OperationExecutor.OperationBase

Represents an operation.

OperationExecutor.OptimizeContext

Represents an operation to generate optimized code for a DbContext.

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.

PropertyAccessorCodeFragment

Represents a property accessor lambda code fragment.

Interfaces

IAnnotationCodeGenerator

Implemented by database providers to control which annotations 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.

IMethodCallCodeFragment

Represents a call to a method.

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.