The Mindscape.LightSpeed.Logging namespace provides classes that are used to specify and execute database schema migrations.
Classes
Class | Description | |
---|---|---|
AssemblyMigrationLoader |
Represents an IMigrationLoader that loads migrations from a
compiled assembly.
| |
Field |
Represents a database field (column).
| |
ForeignKeyField |
Represents a database field (column) that is a foreign key.
| |
IrreversibleMigrationException |
Custom exception type to be thrown when migrating down when the migration cannot be undone
| |
Migration |
Represents a migration. Specific migration steps should derive from
this class and override the Up()()() and Down()()() methods.
| |
MigrationAttribute |
Identifies a class as a migration.
| |
MigrationEventArgs |
Contains common event data for events relating to a migration.
| |
MigrationException |
Exception thrown when a migration error occurs.
| |
MigrationExecutedEventArgs |
Provides data for the MigrationExecuted event.
| |
MigrationExecutingEventArgs |
Provides data for the MigrationExecuting event.
| |
MigrationInfo |
Provides metadata about a Migration.
| |
Migrator |
Runs migrations and executes them against a database.
| |
ModelDataType |
Represents the data type of an entity property.
| |
SourceDirectoryMigrationLoader |
Represents an IMigrationLoader that loads migrations from a
directory of source files.
|
Structures
Structure | Description | |
---|---|---|
MigrationVersion |
The version identifier of a Migration.
|
Interfaces
Interface | Description | |
---|---|---|
IMigrationLoader |
Represents an object that can load migrations from a source, such
as a directory of code files or a compiled assembly.
| |
IMigrationLogger |
Logs events and information during a migration.
|
Enumerations
Enumeration | Description | |
---|---|---|
Direction |
The direction of a migration being executed.
| |
FieldOptions |
Contains field column customisation options.
| |
MigrationStatus |
Describes the status of one migration relative to another.
| |
ProviderType |
The database types supported by LightSpeed migrations.
|