C# Класс NSoft.NFramework.Data.MySql.EnterpriseLibrary.MySqlDatabase

Наследование: Microsoft.Practices.EnterpriseLibrary.Data.Database
Показать файл Открыть проект

Открытые методы

Метод Описание
BuildParameterName ( string name ) : string

Builds a value parameter name for the current database.

MySqlDatabase ( string connectionString ) : System

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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].

Описание методов

BuildParameterName() публичный Метод

Builds a value parameter name for the current database.
public BuildParameterName ( string name ) : string
name string The name of the parameter.
Результат string

DeriveParameters() защищенный Метод

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.
Результат void

MySqlDatabase() публичный Метод

public MySqlDatabase ( string connectionString ) : System
connectionString string
Результат System

SameNumberOfParametersAndValues() защищенный Метод

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.
Результат bool

SetUpRowUpdatedEvent() защищенный Метод

Sets the RowUpdated event for the data adapter.
protected SetUpRowUpdatedEvent ( DbDataAdapter adapter ) : void
adapter System.Data.Common.DbDataAdapter The to set the /// event.
Результат void