C# Class DotNetMigrations.Core.Data.DatabaseInitializer

Initializes the database schema with objects required by DNM.
Afficher le fichier Open project: jpoehls/dotnetmigrations Class Usage Examples

Méthodes publiques

Méthode Description
DatabaseInitializer ( DataAccess dataAccess ) : System
Initialize ( ) : void

Initializes the database schema by creating objects required by DNM.

Private Methods

Méthode 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 méthode

public DatabaseInitializer ( DataAccess dataAccess ) : System
dataAccess DataAccess
Résultat System

Initialize() public méthode

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