C# Class Migr8.Database

This is the entry point: Use Migr8 by calling Migrate, supplying a connection string (or a connection string name), some migrations (by calling Migrations.FromThisAssembly, Migrations.FromAssemblyOf{T}, or Migrations.FromAssembly), and possibly some Options if you want to customize something. Migrations are classes decorated with the MigrationAttribute, which must implement ISqlMigration in order to provide some SQL to be executed.
Mostra file Open project: rebus-org/migr8

Public Methods

Method Description
Migrate ( string connectionStringOrConnectionStringName, Migrations migrations, Options options = null ) : void

Executes the given migrations on the specified database.

Private Methods

Method Description
GetDatabase ( ) : IDb

Method Details

Migrate() public static method

Executes the given migrations on the specified database.
public static Migrate ( string connectionStringOrConnectionStringName, Migrations migrations, Options options = null ) : void
connectionStringOrConnectionStringName string Specifies a connection string or the name of a connection string in the current application configuration file to use.
migrations Migrations Supplies the migrations to be executed.
options Options Optionally specifies some custom options to use.
return void