C# 클래스 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.
파일 보기 프로젝트 열기: rebus-org/migr8

공개 메소드들

메소드 설명
Migrate ( string connectionStringOrConnectionStringName, Migrations migrations, Options options = null ) : void

Executes the given migrations on the specified database.

비공개 메소드들

메소드 설명
GetDatabase ( ) : IDb

메소드 상세

Migrate() 공개 정적인 메소드

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.
리턴 void