IEfMigratorBackend Interface

Summary

Back-end migrator used in the MarshalByReference
Namespace
Cake.EntityFramework.Interfaces
Implementing Types
graph TD Type["IEfMigratorBackend"] class Type type-node Type-.->Implementing0["EfMigratorBackend"] click Implementing0 "/Cake.EntityFramework/api/Cake.EntityFramework.Migrator/EfMigratorBackend"

Syntax

public interface IEfMigratorBackend

Properties

Name Value Summary
Ready bool
Gets a boolean value if the migration is currently ready. Specifically the AppDomain is ready

Methods

Name Value Summary
GenerateScriptForLatest() ScriptResult
Generates a script for the latest version if any
GenerateScriptForVersion(string) ScriptResult
Generates a script for the specific version if any
GetCurrentMigration() string
Gets the name of the current migration
GetLatestMigration() string
Gets the name of the latest migration
GetLocalMigrations() IEnumerable<string>
Gets a list of names of local migrations
GetPendingMigrations() IEnumerable<string>
Gets all migrations that are defined in the assembly but haven't been applied to the target database.
GetRemoteMigrations() IEnumerable<string>
Gets all migrations that have been applied to the target database.
HasPendingMigrations() bool
Determines if there are any pending migrations
MigrateTo(string) MigrationResult
Migrates the data store to the specific version
MigrateToLatest() MigrationResult
Migrates the data store to the lastest version if any