C# Class DotNetMigrations.Core.Data.DataAccess

Inheritance: IDisposable
Afficher le fichier Open project: jpoehls/dotnetmigrations Class Usage Examples

Méthodes publiques

Méthode Description
BeginTransaction ( ) : DbTransaction
CloseConnection ( ) : void
CreateCommand ( ) : DbCommand
DataAccess ( System.Data.Common.DbProviderFactory factory, string connectionString, string provider, int commandTimeout ) : System
Dispose ( ) : void
ExecuteScript ( DbTransaction tran, string script ) : void

Executes a SQL script. Includes support for executing scripts in batches using the GO keyword.

OpenConnection ( ) : void

Private Methods

Méthode Description
GetConnection ( string connectionString ) : DbConnection

Creates a connection object based on the Provider specified in the connection string

Method Details

BeginTransaction() public méthode

public BeginTransaction ( ) : DbTransaction
Résultat System.Data.Common.DbTransaction

CloseConnection() public méthode

public CloseConnection ( ) : void
Résultat void

CreateCommand() public méthode

public CreateCommand ( ) : DbCommand
Résultat System.Data.Common.DbCommand

DataAccess() public méthode

public DataAccess ( System.Data.Common.DbProviderFactory factory, string connectionString, string provider, int commandTimeout ) : System
factory System.Data.Common.DbProviderFactory
connectionString string
provider string
commandTimeout int
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ExecuteScript() public méthode

Executes a SQL script. Includes support for executing scripts in batches using the GO keyword.
public ExecuteScript ( DbTransaction tran, string script ) : void
tran System.Data.Common.DbTransaction
script string
Résultat void

OpenConnection() public méthode

public OpenConnection ( ) : void
Résultat void