Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

MigratorScriptingDecorator Class

Entity Framework 5.0

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.

System.Object
  System.Data.Entity.Migrations.Infrastructure.MigratorBase
    System.Data.Entity.Migrations.Infrastructure.MigratorScriptingDecorator

Namespace:  System.Data.Entity.Migrations.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)
public class MigratorScriptingDecorator : MigratorBase

The MigratorScriptingDecorator type exposes the following members.

  NameDescription
Public methodMigratorScriptingDecoratorInitializes a new instance of the MigratorScriptingDecorator class.
Top
  NameDescription
Public propertyConfiguration Gets the configuration being used for the migrations process. (Inherited from MigratorBase.)
Top
  NameDescription
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.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.