C# Class DotNetMigrations.Core.Data.DatabaseInitializer

Initializes the database schema with objects required by DNM.
显示文件 Open project: jpoehls/dotnetmigrations Class Usage Examples

Public Methods

Method Description
DatabaseInitializer ( DataAccess dataAccess ) : System
Initialize ( ) : void

Initializes the database schema by creating objects required by DNM.

Private Methods

Method Description
CreateMigrationTable ( ) : void

Creates the migration table into the database.

MigrationTableExists ( ) : bool

Checks to see if the migration table currently exists or not.

TableExists ( string tableName ) : bool

Returns true/false whether a table with the given name exists in the database. Throws a SchemaException if more than one table is found with the given name.

Method Details

DatabaseInitializer() public method

public DatabaseInitializer ( DataAccess dataAccess ) : System
dataAccess DataAccess
return System

Initialize() public method

Initializes the database schema by creating objects required by DNM.
public Initialize ( ) : void
return void