ToolingFacade Class

Definition

Helper class that is used by design time tools to run migrations related commands that need to interact with an application that is being edited in Visual Studio. Because the application is being edited the assemblies need to be loaded in a separate AppDomain to ensure the latest version is always loaded. The App/Web.config file from the startup project is also copied to ensure that any configuration is applied.

public class ToolingFacade : IDisposable
type ToolingFacade = class
    interface IDisposable
Public Class ToolingFacade
Implements IDisposable
Inheritance
ToolingFacade
Implements

Constructors

ToolingFacade(String, String, String, String, String, DbConnectionInfo)

Initializes a new instance of the ToolingFacade class.

ToolingFacade(String, String, String, String, String, String, DbConnectionInfo)

Initializes a new instance of the ToolingFacade class.

Properties

LogInfoDelegate

Gets or sets an action to be run to log information.

LogVerboseDelegate

Gets or sets an action to be run to log verbose information.

LogWarningDelegate

Gets or sets an action to be run to log warnings.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(Boolean)

Releases all resources used by the facade.

Finalize()

Releases all unmanaged resources used by the facade.

GetContextType(String)

Gets the fully qualified name of a type deriving from DbContext.

GetContextTypes()

Gets the fully qualified name of all types deriving from DbContext.

GetDatabaseMigrations()

Gets a list of all migrations that have been applied to the database.

GetPendingMigrations()

Gets a list of all migrations that have not been applied to the database.

Scaffold(String, String, String, Boolean)

Scaffolds a code-based migration to apply any pending model changes.

ScaffoldInitialCreate(String, String)

Scaffolds the initial code-based migration corresponding to a previously run database initializer.

ScriptUpdate(String, String, Boolean)

Generates a SQL script to migrate between two migrations.

Update(String, Boolean)

Updates the database to the specified migration.

Applies to