Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AdoAccessor.CreateDbParameters(String, Enum, Int32, Object) Method

Creates the a db parameters collection, adding to the collection a parameter created from the method parameters.

[Visual Basic]
Protected Overloads Sub CreateDbParameters( _
   ByVal name As String, _
   ByVal dbType As Enum, _
   ByVal size As Integer, _
   ByVal parameterValue As Object _
)
[C#]
protected IDbParameters CreateDbParameters(
   string name,
   Enum dbType,
   int size,
   object parameterValue
);

Parameters

name
The name of the parameter
dbType
The type of the parameter.
size
The size of the parameter, for use in defining lengths of string values. Use 0 if not applicable.
parameterValue
The parameter value.

Return Value

A collection of db parameters with a single parameter in the collection based on the method parameters

See Also

AdoAccessor Class | Spring.Data.Core Namespace | AdoAccessor.CreateDbParameters Overload List