ToolingFacade Class

Represents a 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.


Namespace:  System.Data.Entity.Migrations.Design
Assembly:  EntityFramework (in EntityFramework.dll)

public class ToolingFacade : IDisposable

The ToolingFacade type exposes the following members.

Public methodToolingFacadeInitializes a new instance of the ToolingFacade class.

Public propertyLogInfoDelegateGets or sets an action to be run to log information.
Public propertyLogVerboseDelegateGets or sets an action to be run to log verbose information.
Public propertyLogWarningDelegateGets or sets an action to be run to log warnings.

Public methodDispose()Releases all resources used by the ToolingFacade.
Protected methodDispose(Boolean)Releases all resources used by the ToolingFacade.
Public methodEquals (Inherited from Object.)
Protected methodFinalizeReleases all unmanaged resources used by the facade. (Overrides Object.Finalize().)
Public methodGetContextType
Public methodGetContextTypesGets the fully qualified name of all types deriving from DbContext.
Public methodGetDatabaseMigrationsGets a list of all migrations that have been applied to the database.
Public methodGetHashCode (Inherited from Object.)
Public methodGetPendingMigrationsGets a list of all migrations that have not been applied to the database.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodScaffoldScaffolds a code-based migration to apply any pending model changes.
Public methodScaffoldInitialCreateScaffolds the initial code-based migration corresponding to a previously run database initializer.
Public methodScriptUpdateGenerates a SQL script to migrate between two migrations.
Public methodToString (Inherited from Object.)
Public methodUpdateUpdates the database to the specified migration.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.