MigratorScriptingDecorator Class

Represents a decorator to produce a SQL script instead of applying changes to the database. Using this decorator to wrap DbMigrator will prevent DbMigrator from applying any changes to the target database.


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

public class MigratorScriptingDecorator : MigratorBase

The MigratorScriptingDecorator type exposes the following members.

Public methodMigratorScriptingDecoratorInitializes a new instance of the MigratorScriptingDecorator class.

Public propertyConfiguration Gets the configuration being used for the migrations process. (Inherited from MigratorBase.)

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetDatabaseMigrations Gets a list of the migrations that have been applied to the database. (Inherited from MigratorBase.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLocalMigrations Gets a list of the migrations that are defined in the assembly. (Inherited from MigratorBase.)
Public methodGetPendingMigrations Gets a list of the pending migrations that have not been applied to the database. (Inherited from MigratorBase.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodScriptUpdateUpdates the database to the target migration.
Public methodToString (Inherited from Object.)
Public methodUpdate() Updates the target database to the latest migration. (Inherited from MigratorBase.)
Public methodUpdate(String) Updates the target database to a given migration. (Inherited from MigratorBase.)

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