DbExtensions.CreateParameter<T> Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée un paramètre SQL à l’aide des arguments donnés.
public static System.Data.IDbDataParameter CreateParameter<T>(this System.Data.IDbCommand command, System.Data.ParameterDirection direction, string parameterName, T value, int? size = default, System.Data.DbType? dbType = default);
static member CreateParameter : System.Data.IDbCommand * System.Data.ParameterDirection * string * 'T * Nullable<int> * Nullable<System.Data.DbType> -> System.Data.IDbDataParameter
<Extension()>
Public Function CreateParameter(Of T) (command As IDbCommand, direction As ParameterDirection, parameterName As String, value As T, Optional size As Nullable(Of Integer) = Nothing, Optional dbType As Nullable(Of DbType) = Nothing) As IDbDataParameter
Paramètres de type
- T
Type du paramètre.
Paramètres
- command
- IDbCommand
Commande à utiliser pour créer le paramètre.
- direction
- ParameterDirection
Direction du paramètre.
- parameterName
- String
Nom du paramètre.
- value
- T
Valeur du paramètre.
Retours
Paramètre créé à l’aide des arguments donnés.