C# 클래스 DataTableWriter.Adapters.DbAdapter

A simple database adapter to manage connections as well as exposing table manipulation functionality that other classes can leverage.
상속: IDbAdapter
파일 보기 프로젝트 열기: tableau/TabMon 1 사용 예제들

공개 메소드들

메소드 설명
AddColumnsToTableToMatchSchema ( string tableName, DataTable schema ) : void

Adds columns to an existing database table to include all columns present in a given schema.

CloseConnection ( ) : void

Close the database connection.

DbAdapter ( DbDriverType driverType, IDbConnectionInfo connectionInfo ) : System
Dispose ( ) : void
ExistsColumn ( string dbTableName, DataColumn column ) : bool

Indicates whether a column with a given name already exists in a database table.

IsConnectionOpen ( ) : bool

Returns true if database connection is in an open state.

OpenConnection ( ) : void

Open the database connection.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
AddColumn ( string dbTableName, DataColumn column ) : void
ClusterIndex ( string tableName, string indexName ) : void
CreateIndexOnTable ( string tableName, string columnName, string indexName ) : void
CreateTable ( DataTable schema, bool generateIdentity = true ) : void
DeleteRowsOlderThan ( string tableName, int threshold ) : void
DropIndex ( string indexName ) : void
ExistsTable ( string tableName ) : bool
GetIndexes ( string tableName ) : IList
GetSchema ( string tableName ) : DataTable
InsertRow ( string dbTableName, DataRow row ) : void

메소드 상세

AddColumnsToTableToMatchSchema() 공개 메소드

Adds columns to an existing database table to include all columns present in a given schema.
public AddColumnsToTableToMatchSchema ( string tableName, DataTable schema ) : void
tableName string The name of the table to add columns to.
schema System.Data.DataTable The schema to use as a point of reference.
리턴 void

CloseConnection() 공개 메소드

Close the database connection.
public CloseConnection ( ) : void
리턴 void

DbAdapter() 공개 메소드

public DbAdapter ( DbDriverType driverType, IDbConnectionInfo connectionInfo ) : System
driverType DbDriverType
connectionInfo IDbConnectionInfo
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

ExistsColumn() 공개 메소드

Indicates whether a column with a given name already exists in a database table.
public ExistsColumn ( string dbTableName, DataColumn column ) : bool
dbTableName string The table to check for existence of the column.
column System.Data.DataColumn The column to check for a match.
리턴 bool

IsConnectionOpen() 공개 메소드

Returns true if database connection is in an open state.
public IsConnectionOpen ( ) : bool
리턴 bool

OpenConnection() 공개 메소드

Open the database connection.
public OpenConnection ( ) : void
리턴 void