Skip to content

HostMigrationExtensions class

namespace: Serenity.Extensions   assembly: Serenity.Extensions

Helper methods for app host migration commands, e.g. "migrate" to run database migrations before starting the app.

public static class HostMigrationExtensions

Public Members

name description
static RunMigrationsIf(…) Runs Initialize when the first argument is "migrate".
static RunMigrationsIf<TService>(…) Runs the migrations via the provided runner when the first argument is "migrate".

See Also