C# Class NSoft.NFramework.Data.MySql.EnterpriseLibrary.MySqlDatabase

Inheritance: Microsoft.Practices.EnterpriseLibrary.Data.Database
Afficher le fichier Open project: debop/NFramework

Méthodes publiques

Méthode Description
BuildParameterName ( string name ) : string

Builds a value parameter name for the current database.

MySqlDatabase ( string connectionString ) : System

Méthodes protégées

Méthode Description
DeriveParameters ( DbCommand discoveryCommand ) : void

Retrieves parameter information from the stored procedure specified in the DbCommand and populates the Parameters collection of the specified DbCommand object.

The DbCommand must be a MySqlCommand instance.

SameNumberOfParametersAndValues ( DbCommand command, object values ) : bool

Determines if the number of parameters in the command matches the array of parameter values.

SetUpRowUpdatedEvent ( DbDataAdapter adapter ) : void

Sets the RowUpdated event for the data adapter.

Private Methods

Méthode Description
AddInParameter ( DbCommand command, string name, MySqlDbType dbType ) : void
AddInParameter ( DbCommand command, string name, MySqlDbType dbType, object value ) : void
AddInParameter ( DbCommand command, string name, MySqlDbType dbType, string sourceColumn, DataRowVersion sourceVersion ) : void
AddOutParameter ( DbCommand command, string name, MySqlDbType dbType, int size ) : void
AddParameter ( DbCommand command, string name, MySqlDbType dbType, ParameterDirection direction, string sourceColumn, DataRowVersion sourceVersion, object value ) : void
AddParameter ( DbCommand command, string name, MySqlDbType dbType, int size, ParameterDirection direction, bool nullable, byte precision, byte scale, string sourceColumn, DataRowVersion sourceVersion, object value ) : void
CheckIfMySqlCommand ( DbCommand command ) : MySqlCommand
ConfigureParameter ( MySqlParameter parameter, string name, MySqlDbType dbType, int size, ParameterDirection direction, bool nullable, byte precision, byte scale, string sourceColumn, DataRowVersion sourceVersion, object value ) : void
CreateParameter ( string name, MySqlDbType dbType, int size, ParameterDirection direction, bool nullable, byte precision, byte scale, string sourceColumn, DataRowVersion sourceVersion, object value ) : DbParameter
OnMySqlRowUpdated ( object sender, MySqlRowUpdatedEventArgs rowThatCouldNotBeWritten ) : void

Called when [my SQL row updated].

Method Details

BuildParameterName() public méthode

Builds a value parameter name for the current database.
public BuildParameterName ( string name ) : string
name string The name of the parameter.
Résultat string

DeriveParameters() protected méthode

Retrieves parameter information from the stored procedure specified in the DbCommand and populates the Parameters collection of the specified DbCommand object.
The DbCommand must be a MySqlCommand instance.
protected DeriveParameters ( DbCommand discoveryCommand ) : void
discoveryCommand DbCommand The to do /// the discovery.
Résultat void

MySqlDatabase() public méthode

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

SameNumberOfParametersAndValues() protected méthode

Determines if the number of parameters in the command matches the array of parameter values.
protected SameNumberOfParametersAndValues ( DbCommand command, object values ) : bool
command DbCommand The containing the /// parameters.
values object The array of parameter values.
Résultat bool

SetUpRowUpdatedEvent() protected méthode

Sets the RowUpdated event for the data adapter.
protected SetUpRowUpdatedEvent ( DbDataAdapter adapter ) : void
adapter System.Data.Common.DbDataAdapter The to set the /// event.
Résultat void