Creates a parameter object that does not require a size from the
passed values and adds it to the command object parameters collection.
Namespace:
Bespoke.Common.DataAssembly: Bespoke.Common (in Bespoke.Common.dll) Version: 4.3.0.0 (4.3.0.0)
Syntax
C# |
---|
public MySqlParameter AddParameter( string name, MySqlDbType type, ParameterDirection direction, Object value ) |
Visual Basic (Declaration) |
---|
Public Function AddParameter ( _ name As String, _ type As MySqlDbType, _ direction As ParameterDirection, _ value As Object _ ) As MySqlParameter |
Visual C++ |
---|
public: MySqlParameter^ AddParameter( String^ name, MySqlDbType type, ParameterDirection direction, Object^ value ) |
Parameters
- name
- Type: System..::.String
The parameter name.
- type
- Type: MySqlDbType
The parameter type.
- direction
- Type: System.Data..::.ParameterDirection
The parameter direction.
- value
- Type: System..::.Object
The parameter value.