C# Class Mite.MsSql.MsSqlDatabaseRepository

Inheritance: Mite.Core.AnsiDatabaseRepository
显示文件 Open project: soitgoes/Mite

Public Methods

Method Description
CreateDatabaseIfNotExists ( ) : void
ExecuteScript ( string script ) : void
GenerateSqlScript ( bool includeData ) : string
GetConnWithoutDatabaseSpecified ( ) : IDbConnection
Init ( ) : MigrationTracker
MigrationTableExists ( ) : bool
MsSqlDatabaseRepository ( string connectionString, string filePath ) : System
MsSqlDatabaseRepository ( string connectionString, string filePath, string tableName ) : System

Protected Methods

Method Description
GetMigrationCmd ( Migration migration ) : IDbCommand

Method Details

CreateDatabaseIfNotExists() public method

public CreateDatabaseIfNotExists ( ) : void
return void

ExecuteScript() public method

public ExecuteScript ( string script ) : void
script string
return void

GenerateSqlScript() public method

public GenerateSqlScript ( bool includeData ) : string
includeData bool
return string

GetConnWithoutDatabaseSpecified() public method

public GetConnWithoutDatabaseSpecified ( ) : IDbConnection
return IDbConnection

GetMigrationCmd() protected method

protected GetMigrationCmd ( Migration migration ) : IDbCommand
migration Mite.Core.Migration
return IDbCommand

Init() public method

public Init ( ) : MigrationTracker
return Mite.Core.MigrationTracker

MigrationTableExists() public method

public MigrationTableExists ( ) : bool
return bool

MsSqlDatabaseRepository() public method

public MsSqlDatabaseRepository ( string connectionString, string filePath ) : System
connectionString string
filePath string
return System

MsSqlDatabaseRepository() public method

public MsSqlDatabaseRepository ( string connectionString, string filePath, string tableName ) : System
connectionString string
filePath string
tableName string
return System