C# Class DBH.Helper.Impl.DBHelperImpl

Inheritance: IDBHelper
Afficher le fichier Open project: bluedusk/DBHelper

Private Properties

Свойство Type Description
BuildSqlCommand IDbCommand
BuildSqlCommand IDbCommand
Close void
CreateCommand IDbCommand
CreateDbConnection IDbConnection
CreateDbDataAdapter DbDataAdapter
CreateDbParameter IDbDataParameter
DeriveParameters void
isPk bool

Méthodes publiques

Méthode Description
AbortTransaction ( ) : void
BeginTransaction ( ) : void
CommitTransaction ( ) : void
DBHelperImpl ( string dsName ) : System
Delete ( DataRow obj ) : int
Dispose ( ) : void
ExecuteQuery ( IDbDataAdapter &da, string sql ) : DataTable
ExecuteQuery ( string sql ) : DataTable
ExecuteQuery ( string sql, int pageId, int pageSize ) : DataTable
ExecuteUpdate ( string sql ) : int
ExecuteUpdate ( string sql, Hashtable parameters ) : int
Insert ( DataRow obj ) : int
NewDataRow ( string tableName ) : DataRow
Save ( DataRow obj ) : int
Update ( DataRow obj ) : int

Private Methods

Méthode Description
BuildSqlCommand ( string sql ) : IDbCommand
BuildSqlCommand ( string sql, Hashtable parameters ) : IDbCommand
Close ( ) : void
CreateCommand ( ) : IDbCommand
CreateDbConnection ( string dsName ) : IDbConnection
CreateDbDataAdapter ( IDbCommand dbCommand ) : DbDataAdapter
CreateDbParameter ( string parameterName, object value ) : IDbDataParameter
DeriveParameters ( IDbCommand spCommand ) : void
isPk ( DataTable dt, DataColumn dc ) : bool

Method Details

AbortTransaction() public méthode

public AbortTransaction ( ) : void
Résultat void

BeginTransaction() public méthode

public BeginTransaction ( ) : void
Résultat void

CommitTransaction() public méthode

public CommitTransaction ( ) : void
Résultat void

DBHelperImpl() public méthode

public DBHelperImpl ( string dsName ) : System
dsName string
Résultat System

Delete() public méthode

public Delete ( DataRow obj ) : int
obj DataRow
Résultat int

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ExecuteQuery() public méthode

public ExecuteQuery ( IDbDataAdapter &da, string sql ) : DataTable
da IDbDataAdapter
sql string
Résultat DataTable

ExecuteQuery() public méthode

public ExecuteQuery ( string sql ) : DataTable
sql string
Résultat DataTable

ExecuteQuery() public méthode

public ExecuteQuery ( string sql, int pageId, int pageSize ) : DataTable
sql string
pageId int
pageSize int
Résultat DataTable

ExecuteUpdate() public méthode

public ExecuteUpdate ( string sql ) : int
sql string
Résultat int

ExecuteUpdate() public méthode

public ExecuteUpdate ( string sql, Hashtable parameters ) : int
sql string
parameters Hashtable
Résultat int

Insert() public méthode

public Insert ( DataRow obj ) : int
obj DataRow
Résultat int

NewDataRow() public méthode

public NewDataRow ( string tableName ) : DataRow
tableName string
Résultat DataRow

Save() public méthode

public Save ( DataRow obj ) : int
obj DataRow
Résultat int

Update() public méthode

public Update ( DataRow obj ) : int
obj DataRow
Résultat int