C# Class MySql.Data.MySqlClient.MySqlConnection

Inheritance: DbConnection, ICloneable
Afficher le fichier Open project: elevate/mysqlconnector-.net Class Usage Examples

Private Properties

Свойство Type Description
Abort void
ClearCommandTimeout void
CloseFully void
CurrentDatabase string
HandleTimeoutOrThreadAbort void
ICloneable object
OnInfoMessage void
SetCommandTimeout bool
SetState void

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
BeginDbTransaction ( System.Data.IsolationLevel isolationLevel ) : DbTransaction
CreateDbCommand ( ) : DbCommand
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
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

Method Details

BeginDbTransaction() protected méthode

protected BeginDbTransaction ( System.Data.IsolationLevel isolationLevel ) : DbTransaction
isolationLevel System.Data.IsolationLevel
Résultat DbTransaction

BeginTransaction() public méthode

public BeginTransaction ( ) : MySql.Data.MySqlClient.MySqlTransaction
Résultat MySql.Data.MySqlClient.MySqlTransaction

BeginTransaction() public méthode

public BeginTransaction ( System.Data.IsolationLevel iso ) : MySql.Data.MySqlClient.MySqlTransaction
iso System.Data.IsolationLevel
Résultat MySql.Data.MySqlClient.MySqlTransaction

CancelQuery() public méthode

public CancelQuery ( int timeout ) : void
timeout int
Résultat void

ChangeDatabase() public méthode

public ChangeDatabase ( string databaseName ) : void
databaseName string
Résultat void

ClearAllPools() public static méthode

public static ClearAllPools ( ) : void
Résultat void

ClearPool() public static méthode

public static ClearPool ( MySqlConnection connection ) : void
connection MySqlConnection
Résultat void

Clone() public méthode

Creates a new MySqlConnection object with the exact same ConnectionString value
public Clone ( ) : MySqlConnection
Résultat MySqlConnection

Close() public méthode

public Close ( ) : void
Résultat void

CreateCommand() public méthode

public CreateCommand ( ) : MySqlCommand
Résultat MySqlCommand

CreateDbCommand() protected méthode

protected CreateDbCommand ( ) : DbCommand
Résultat DbCommand

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EnlistTransaction() public méthode

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

GetSchema() public méthode

Returns schema information for the data source of this DbConnection.
public GetSchema ( ) : DataTable
Résultat System.Data.DataTable

GetSchema() public méthode

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.
Résultat System.Data.DataTable

GetSchema() public méthode

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.
Résultat System.Data.DataTable

MySqlConnection() public méthode

public MySqlConnection ( ) : System
Résultat System

MySqlConnection() public méthode

public MySqlConnection ( string connectionString ) : System
connectionString string
Résultat System

Open() public méthode

public Open ( ) : void
Résultat void

Ping() public méthode

Ping
public Ping ( ) : bool
Résultat bool