C# Class DataAccessFramework.SqlExpressDataTool

An implementation of the DataTool that uses Sql Server Express to connect to an .mdf file.
Inheritance: MSSqlDataTool
Exibir arquivo Open project: PeteProgrammer/DataAccessFramework

Public Methods

Method Description
BeginTransaction ( ) : void
CommitTransaction ( ) : void
RollbackTransaction ( ) : void
SqlExpressDataTool ( string dataFile ) : System

Creates a new SqlExpressDataTool instance.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes the current instance, closing the connection.

GetConnection ( ) : IDbConnection

Gets an open SqlConnection

GetTransaction ( ) : IDbTransaction

Gets a SqlTransaction instance if a transaction has been started; otherwise null is returned.

Method Details

BeginTransaction() public method

public BeginTransaction ( ) : void
return void

CommitTransaction() public method

public CommitTransaction ( ) : void
return void

Dispose() protected method

Disposes the current instance, closing the connection.
protected Dispose ( bool disposing ) : void
disposing bool
return void

GetConnection() protected method

Gets an open SqlConnection
protected GetConnection ( ) : IDbConnection
return IDbConnection

GetTransaction() protected method

Gets a SqlTransaction instance if a transaction has been started; otherwise null is returned.
protected GetTransaction ( ) : IDbTransaction
return IDbTransaction

RollbackTransaction() public method

public RollbackTransaction ( ) : void
return void

SqlExpressDataTool() public method

Creates a new SqlExpressDataTool instance.
public SqlExpressDataTool ( string dataFile ) : System
dataFile string /// The full path to the .mdf file containing the database. ///
return System