C# 클래스 MySql.Data.MySqlClient.MySqlConnection

상속: DbConnection, ICloneable
파일 보기 프로젝트 열기: elevate/mysqlconnector-.net 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Abort void
ClearCommandTimeout void
CloseFully void
CurrentDatabase string
HandleTimeoutOrThreadAbort void
ICloneable object
OnInfoMessage void
SetCommandTimeout bool
SetState void

공개 메소드들

메소드 설명
BeginTransaction ( ) : MySql.Data.MySqlClient.MySqlTransaction
BeginTransaction ( System.Data.IsolationLevel iso ) : MySql.Data.MySqlClient.MySqlTransaction
CancelQuery ( int timeout ) : void
ChangeDatabase ( string databaseName ) : void
ClearAllPools ( ) : void
ClearPool ( MySqlConnection connection ) : void
Clone ( ) : MySqlConnection

Creates a new MySqlConnection object with the exact same ConnectionString value

Close ( ) : void
CreateCommand ( ) : MySqlCommand
EnlistTransaction ( Transaction transaction ) : void

Enlists in the specified transaction.

GetSchema ( ) : DataTable

Returns schema information for the data source of this DbConnection.

GetSchema ( string collectionName ) : DataTable

Returns schema information for the data source of this DbConnection using the specified string for the schema name.

GetSchema ( string collectionName, string restrictionValues ) : DataTable

Returns schema information for the data source of this DbConnection using the specified string for the schema name and the specified string array for the restriction values.

MySqlConnection ( ) : System
MySqlConnection ( string connectionString ) : System
Open ( ) : void
Ping ( ) : bool

Ping

보호된 메소드들

메소드 설명
BeginDbTransaction ( System.Data.IsolationLevel isolationLevel ) : DbTransaction
CreateDbCommand ( ) : DbCommand
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
Abort ( ) : void
ClearCommandTimeout ( ) : void

Clears query timeout, allowing next SetCommandTimeout() to succeed.

CloseFully ( ) : void
CurrentDatabase ( ) : string
HandleTimeoutOrThreadAbort ( Exception ex ) : void
ICloneable ( ) : object
OnInfoMessage ( MySqlInfoMessageEventArgs args ) : void
SetCommandTimeout ( int value ) : bool

Sets query timeout. If timeout has been set prior and not yet cleared ClearCommandTimeout(), it has no effect.

SetState ( ConnectionState newConnectionState, bool broadcast ) : void

메소드 상세

BeginDbTransaction() 보호된 메소드

protected BeginDbTransaction ( System.Data.IsolationLevel isolationLevel ) : DbTransaction
isolationLevel System.Data.IsolationLevel
리턴 DbTransaction

BeginTransaction() 공개 메소드

public BeginTransaction ( ) : MySql.Data.MySqlClient.MySqlTransaction
리턴 MySql.Data.MySqlClient.MySqlTransaction

BeginTransaction() 공개 메소드

public BeginTransaction ( System.Data.IsolationLevel iso ) : MySql.Data.MySqlClient.MySqlTransaction
iso System.Data.IsolationLevel
리턴 MySql.Data.MySqlClient.MySqlTransaction

CancelQuery() 공개 메소드

public CancelQuery ( int timeout ) : void
timeout int
리턴 void

ChangeDatabase() 공개 메소드

public ChangeDatabase ( string databaseName ) : void
databaseName string
리턴 void

ClearAllPools() 공개 정적인 메소드

public static ClearAllPools ( ) : void
리턴 void

ClearPool() 공개 정적인 메소드

public static ClearPool ( MySqlConnection connection ) : void
connection MySqlConnection
리턴 void

Clone() 공개 메소드

Creates a new MySqlConnection object with the exact same ConnectionString value
public Clone ( ) : MySqlConnection
리턴 MySqlConnection

Close() 공개 메소드

public Close ( ) : void
리턴 void

CreateCommand() 공개 메소드

public CreateCommand ( ) : MySqlCommand
리턴 MySqlCommand

CreateDbCommand() 보호된 메소드

protected CreateDbCommand ( ) : DbCommand
리턴 DbCommand

Dispose() 보호된 메소드

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

EnlistTransaction() 공개 메소드

Enlists in the specified transaction.
public EnlistTransaction ( Transaction transaction ) : void
transaction System.Transactions.Transaction /// A reference to an existing in which to enlist. ///
리턴 void

GetSchema() 공개 메소드

Returns schema information for the data source of this DbConnection.
public GetSchema ( ) : DataTable
리턴 System.Data.DataTable

GetSchema() 공개 메소드

Returns schema information for the data source of this DbConnection using the specified string for the schema name.
public GetSchema ( string collectionName ) : DataTable
collectionName string Specifies the name of the schema to return.
리턴 System.Data.DataTable

GetSchema() 공개 메소드

Returns schema information for the data source of this DbConnection using the specified string for the schema name and the specified string array for the restriction values.
public GetSchema ( string collectionName, string restrictionValues ) : DataTable
collectionName string Specifies the name of the schema to return.
restrictionValues string Specifies a set of restriction values for the requested schema.
리턴 System.Data.DataTable

MySqlConnection() 공개 메소드

public MySqlConnection ( ) : System
리턴 System

MySqlConnection() 공개 메소드

public MySqlConnection ( string connectionString ) : System
connectionString string
리턴 System

Open() 공개 메소드

public Open ( ) : void
리턴 void

Ping() 공개 메소드

Ping
public Ping ( ) : bool
리턴 bool