Executes the query and returns the first column of the first row in the resultset returned by the query.
Namespace: System.Extensions.DataAssembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)
Syntax
C# |
---|
public static Nullable<float> ExecuteSingle(
this IDbCommand command
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function ExecuteSingle (
command As IDbCommand
) As Nullable(Of Single) |
Visual C++ |
---|
public:
[ExtensionAttribute]
static Nullable<float> ExecuteSingle(
IDbCommand^ command
) |
F# |
---|
static member ExecuteSingle :
command : IDbCommand -> Nullable<float32>
|
Return Value
Type:
Nullable<(Of <(<'Single>)>)>The value of the field.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDbCommand. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also