C# Class MySql.Data.MySqlClient.MySqlParameter

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

Private Properties

Свойство Type Description
EstimatedSize long
GetPSType int
ICloneable object
MySqlParameter System
Serialize void
SetDbType void
SetMySqlDbType void
SetTypeFromValue void

Méthodes publiques

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

Private Methods

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

Method Details

Clone() public méthode

public Clone ( ) : MySqlParameter
Résultat MySqlParameter

MySqlParameter() public méthode

Initializes a new instance of the MySqlParameter class.
public MySqlParameter ( ) : System
Résultat System

MySqlParameter() public méthode

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

MySqlParameter() public méthode

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

MySqlParameter() public méthode

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

MySqlParameter() public méthode

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

MySqlParameter() public méthode

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

ResetDbType() public méthode

Resets the DbType property to its original settings.
public ResetDbType ( ) : void
Résultat void

ToString() public méthode

Overridden. Gets a string containing the ParameterName.
public ToString ( ) : string
Résultat string