C# Класс DotNetMigrations.Core.Data.DatabaseInitializer

Initializes the database schema with objects required by DNM.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DatabaseInitializer ( DataAccess dataAccess ) : System
Initialize ( ) : void

Initializes the database schema by creating objects required by DNM.

Приватные методы

Метод Описание
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.

Описание методов

DatabaseInitializer() публичный Метод

public DatabaseInitializer ( DataAccess dataAccess ) : System
dataAccess DataAccess
Результат System

Initialize() публичный Метод

Initializes the database schema by creating objects required by DNM.
public Initialize ( ) : void
Результат void