| IStoredProcedureAddParameter Method |
Adds a parameter to the procedure.
Namespace:
Galactic.Sql
Assembly:
Galactic.Sql (in Galactic.Sql.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax bool AddParameter(
string name,
Object value,
DbType valueType,
Type parameterType,
StoredProcedureParameterType direction,
Nullable<int> maxSize = null
)
Function AddParameter (
name As String,
value As Object,
valueType As DbType,
parameterType As Type,
direction As StoredProcedureParameterType,
Optional maxSize As Nullable(Of Integer) = Nothing
) As Boolean
bool AddParameter(
String^ name,
Object^ value,
DbType valueType,
Type^ parameterType,
StoredProcedureParameterType direction,
Nullable<int> maxSize = nullptr
)
abstract AddParameter :
name : string *
value : Object *
valueType : DbType *
parameterType : Type *
direction : StoredProcedureParameterType *
?maxSize : Nullable<int>
(* Defaults:
let _maxSize = defaultArg maxSize null
*)
-> bool
Parameters
- name
- Type: SystemString
The name of the parameter to add. - value
- Type: SystemObject
The value of the parameter to add. - valueType
- Type: System.DataDbType
The database type of the value to add with the parameter. - parameterType
- Type: SystemType
The object type of the parameter. - direction
- Type: Galactic.SqlStoredProcedureParameterType
The direction of the parameter. Use one of the class parameter constants. Defaults to IN. - maxSize (Optional)
- Type: SystemNullableInt32
The maximum size of the parameter's value in bytes (if relevant).
Return Value
Type:
BooleanTrue if the parameter is added, false otherwise.
See Also