C# Класс MySql.Data.MySqlClient.MySqlParameter

Наследование: DbParameter, IDataParameter, IDbDataParameter, ICloneable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
EstimatedSize long
GetPSType int
ICloneable object
MySqlParameter System
Serialize void
SetDbType void
SetMySqlDbType void
SetTypeFromValue void

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

Метод Описание
Clone ( ) : MySqlParameter
MySqlParameter ( ) : System

Initializes a new instance of the MySqlParameter class.

MySqlParameter ( string parameterName, MySqlDbType dbType ) : System

Initializes a new instance of the MySqlParameter class with the parameter name and the data type.

MySqlParameter ( string parameterName, MySqlDbType dbType, int size ) : System

Initializes a new instance of the MySqlParameter class with the parameter name, the MySqlDbType, and the size.

MySqlParameter ( string parameterName, MySqlDbType dbType, int size, ParameterDirection direction, bool isNullable, byte precision, byte scale, string sourceColumn, DataRowVersion sourceVersion, object value ) : System

Initializes a new instance of the MySqlParameter class with the parameter name, the type of the parameter, the size of the parameter, a ParameterDirection, the precision of the parameter, the scale of the parameter, the source column, a DataRowVersion to use, and the value of the parameter.

MySqlParameter ( string parameterName, MySqlDbType dbType, int size, string sourceColumn ) : System

Initializes a new instance of the MySqlParameter class with the parameter name, the MySqlDbType, the size, and the source column name.

MySqlParameter ( string parameterName, object value ) : System

Initializes a new instance of the MySqlParameter class with the parameter name and a value of the new MySqlParameter.

ResetDbType ( ) : void

Resets the DbType property to its original settings.

ToString ( ) : string

Overridden. Gets a string containing the ParameterName.

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

Метод Описание
EstimatedSize ( ) : long
GetPSType ( ) : int
ICloneable ( ) : object
MySqlParameter ( string name, MySqlDbType type, ParameterDirection dir, string col, DataRowVersion ver, object val ) : System
Serialize ( MySqlPacket packet, bool binary, MySqlConnectionStringBuilder settings ) : void
SetDbType ( DbType db_type ) : void
SetMySqlDbType ( MySqlDbType mysql_dbtype ) : void
SetTypeFromValue ( ) : void

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

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

public Clone ( ) : MySqlParameter
Результат MySqlParameter

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

Initializes a new instance of the MySqlParameter class.
public MySqlParameter ( ) : System
Результат System

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

Initializes a new instance of the MySqlParameter class with the parameter name and the data type.
public MySqlParameter ( string parameterName, MySqlDbType dbType ) : System
parameterName string The name of the parameter to map.
dbType MySqlDbType One of the values.
Результат System

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

Initializes a new instance of the MySqlParameter class with the parameter name, the MySqlDbType, and the size.
public MySqlParameter ( string parameterName, MySqlDbType dbType, int size ) : System
parameterName string The name of the parameter to map.
dbType MySqlDbType One of the values.
size int The length of the parameter.
Результат System

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

Initializes a new instance of the MySqlParameter class with the parameter name, the type of the parameter, the size of the parameter, a ParameterDirection, the precision of the parameter, the scale of the parameter, the source column, a DataRowVersion to use, and the value of the parameter.
public MySqlParameter ( string parameterName, MySqlDbType dbType, int size, ParameterDirection direction, bool isNullable, byte precision, byte scale, string sourceColumn, DataRowVersion sourceVersion, object value ) : System
parameterName string The name of the parameter to map.
dbType MySqlDbType One of the values.
size int The length of the parameter.
direction ParameterDirection One of the values.
isNullable bool true if the value of the field can be null, otherwise false.
precision byte The total number of digits to the left and right of the decimal point to which is resolved.
scale byte The total number of decimal places to which is resolved.
sourceColumn string The name of the source column.
sourceVersion DataRowVersion One of the values.
value object An that is the value of the .
Результат System

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

Initializes a new instance of the MySqlParameter class with the parameter name, the MySqlDbType, the size, and the source column name.
public MySqlParameter ( string parameterName, MySqlDbType dbType, int size, string sourceColumn ) : System
parameterName string The name of the parameter to map.
dbType MySqlDbType One of the values.
size int The length of the parameter.
sourceColumn string The name of the source column.
Результат System

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

Initializes a new instance of the MySqlParameter class with the parameter name and a value of the new MySqlParameter.
public MySqlParameter ( string parameterName, object value ) : System
parameterName string The name of the parameter to map.
value object An that is the value of the .
Результат System

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

Resets the DbType property to its original settings.
public ResetDbType ( ) : void
Результат void

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

Overridden. Gets a string containing the ParameterName.
public ToString ( ) : string
Результат string