Summary
Entity Framework Migrator
- Namespace
- Cake
.EntityFramework .Interfaces - Interfaces
-
- IDisposable
- Implementing Types
graph TD
Interface0["IDisposable"]-.->Type
Type["IEfMigrator"]
class Type type-node
Type-.->Implementing0["EfMigrator"]
click Implementing0 "/Cake.EntityFramework/api/Cake.EntityFramework.Migrator/EfMigrator"
Syntax
public interface IEfMigrator : IDisposable
Properties
Methods
Name | Value | Summary |
---|---|---|
Commit |
void |
Commits the changes to the data store
|
Generate |
string |
Generates a script from the data store for the latest version
|
Generate |
string |
Generates a script from the data store to the specific version
|
GetCurrentMigration |
string |
Gets last migration that has been applied to the target database.
|
GetLatestMigration |
string |
Gets latest migration that is defined in the assembly but has not been applied to the target database.
|
GetLocalMigrations |
IEnumerable |
Gets all migrations that are defined in the configured migrations assembly.
|
GetPendingMigrations |
IEnumerable |
Gets all migrations that are defined in the assembly but haven't been applied to the target database.
|
GetRemoteMigrations |
IEnumerable |
Gets all migrations that have been applied to the target database.
|
HasPendingMigrations |
bool |
Determines if there are any pending migrations
|
MigrateTo |
bool |
Migrates the data store to the specific version
|
MigrateToLatest |
bool |
Migrates the data store to the lastest version if any
|
Rollback |
void |
Rollsback any changes made to the data store
|