Method ExecuteReturn
- Namespace
- Open.Database.Extensions.Synchronous
- Assembly
- Open.Database.Extensions.Core.dll
ExecuteReturn(IExecuteCommand)
Executes the command with a return parameter, as ExecuteNonQuery() does, and returns the value of that parameter.
public static object? ExecuteReturn(this IExecuteCommand command)
Parameters
commandIExecuteCommandThe command to execute.
Returns
- object
The value from the return parameter.
ExecuteReturn<T>(IExecuteCommand)
Executes the command with a return parameter, as
ExecuteNonQuery() does, and returns the value of
that parameter converted to T.
public static T ExecuteReturn<T>(this IExecuteCommand command)
Parameters
commandIExecuteCommandThe command to execute.
Returns
- T
The value from the return parameter, converted to
TasMap<T>()converts a column: a value that is already aTis returned as is, and null when it is NULL andTtakes it.
Type Parameters
TThe type to convert the value to.
Exceptions
- ValueMappingException
The value does not convert to
T, or is out of its range, or it is NULL andTis a non-nullable value type.