C# Class WeenyMapper.Sql.DbCommandFactoryBase

Inheritance: IDbCommandFactory
Exibir arquivo Open project: erikojebo/WeenyMapper

Public Methods

Method Description
BeginConnection ( ) : ConnectionScope
BeginTransaction ( ) : System.Data.TransactionScope
CreateCommand ( ) : DbCommand
CreateCommand ( string commandText ) : DbCommand
CreateConnection ( ) : DbConnection
CreateParameter ( CommandParameter commandParameter ) : DbParameter
CreateParameter ( string name, object value ) : DbParameter
Dispose ( ) : void
EndConnection ( ConnectionScope connectionScope ) : void
EndTransaction ( System.Data.TransactionScope transactionScope ) : void
Matches ( string connectionString ) : bool

Protected Methods

Method Description
CreateNewCommand ( string commandText ) : DbCommand
CreateNewConnection ( string connectionString ) : DbConnection
DbCommandFactoryBase ( string connectionString ) : System.Collections.Generic

Private Methods

Method Description
CreateTransaction ( ConnectionScope connectionScope ) : TransactionReference
Open ( DbConnection connection ) : void

Method Details

BeginConnection() public method

public BeginConnection ( ) : ConnectionScope
return ConnectionScope

BeginTransaction() public method

public BeginTransaction ( ) : System.Data.TransactionScope
return System.Data.TransactionScope

CreateCommand() public method

public CreateCommand ( ) : DbCommand
return System.Data.Common.DbCommand

CreateCommand() public method

public CreateCommand ( string commandText ) : DbCommand
commandText string
return System.Data.Common.DbCommand

CreateConnection() public method

public CreateConnection ( ) : DbConnection
return System.Data.Common.DbConnection

CreateNewCommand() protected abstract method

protected abstract CreateNewCommand ( string commandText ) : DbCommand
commandText string
return System.Data.Common.DbCommand

CreateNewConnection() protected abstract method

protected abstract CreateNewConnection ( string connectionString ) : DbConnection
connectionString string
return System.Data.Common.DbConnection

CreateParameter() public method

public CreateParameter ( CommandParameter commandParameter ) : DbParameter
commandParameter CommandParameter
return System.Data.Common.DbParameter

CreateParameter() public abstract method

public abstract CreateParameter ( string name, object value ) : DbParameter
name string
value object
return System.Data.Common.DbParameter

DbCommandFactoryBase() protected method

protected DbCommandFactoryBase ( string connectionString ) : System.Collections.Generic
connectionString string
return System.Collections.Generic

Dispose() public method

public Dispose ( ) : void
return void

EndConnection() public method

public EndConnection ( ConnectionScope connectionScope ) : void
connectionScope ConnectionScope
return void

EndTransaction() public method

public EndTransaction ( System.Data.TransactionScope transactionScope ) : void
transactionScope System.Data.TransactionScope
return void

Matches() public method

public Matches ( string connectionString ) : bool
connectionString string
return bool