IDataMigrations interface
namespace: Serenity.Extensions assembly: Serenity.Extensions
Applies the migrations of the application. Implemented by the project template (AppServices.DataMigrations) and resolved by RunMigrationsIf for the migrate command, and by Startup on every normal start.
public interface IDataMigrations
Members
| name | description |
|---|---|
| Initialize() | Ensures the databases exist and applies any pending migrations. |
Remarks
Lives next to MigrationUtils so that a host can offer the command without knowing the application assembly, and so the Serene and StartSharp templates share one definition instead of each shipping its own copy.
See Also
- Source: IDataMigrations.cs