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

Inheritance: Microsoft.Practices.EnterpriseLibrary.Data.Database
Mostra file Open project: debop/NFramework

Public Methods

Method Description
BuildParameterName ( string name ) : string

Builds a value parameter name for the current database.

MySqlDatabase ( string connectionString ) : System

Protected Methods

Method 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

Method 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 method

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

DeriveParameters() protected method

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.
return void

MySqlDatabase() public method

public MySqlDatabase ( string connectionString ) : System
connectionString string
return System

SameNumberOfParametersAndValues() protected method

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.
return bool

SetUpRowUpdatedEvent() protected method

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