C# Class MigSharp.DbSchema

Exposes the API to alter database schemas without taking account of versioning.
Inheritance: DbAlterer
Show file Open project: dradovic/MigSharp

Public Methods

Method Description
Alter ( Action alterDatabase ) : void

Alters the database schema as specified using the fluent interface on the passed IDatabase.

Alter ( IMigration migration ) : void

Alters the database schema by applying the specified migration. Versioning is unaffected by this operation and any timestamp information on the migration is disregarded.

DbSchema ( string connectionString, DbPlatform dbPlatform ) : System

Initializes a new instance of DbSchema with default options.

DbSchema ( string connectionString, DbPlatform dbPlatform, DbAltererOptions options ) : System

Initializes a new instance of DbSchema.

Method Details

Alter() public method

Alters the database schema as specified using the fluent interface on the passed IDatabase.
public Alter ( Action alterDatabase ) : void
alterDatabase Action
return void

Alter() public method

Alters the database schema by applying the specified migration. Versioning is unaffected by this operation and any timestamp information on the migration is disregarded.
public Alter ( IMigration migration ) : void
migration IMigration
return void

DbSchema() public method

Initializes a new instance of DbSchema with default options.
public DbSchema ( string connectionString, DbPlatform dbPlatform ) : System
connectionString string
dbPlatform DbPlatform
return System

DbSchema() public method

Initializes a new instance of DbSchema.
public DbSchema ( string connectionString, DbPlatform dbPlatform, DbAltererOptions options ) : System
connectionString string
dbPlatform DbPlatform
options DbAltererOptions
return System