Executes the specified select statement against SimpleDB using default select options.
Namespace: SimolAssembly: Simol (in Simol.dll) Version: 1.0.0.0
Syntax
C# |
---|
public List<T> Select<T>( string selectStatement, params CommandParameter[] selectParams ) |
Visual Basic |
---|
Public Function Select(Of T) ( _ selectStatement As String, _ ParamArray selectParams As CommandParameter() _ ) As List(Of T) |
Visual C++ |
---|
public: generic<typename T> virtual List<T>^ Select( String^ selectStatement, ... array<CommandParameter^>^ selectParams ) sealed |
Parameters
- selectStatement
- Type: System..::..String
The select statement to execute.
- selectParams
- Type: array<Simol..::..CommandParameter>[]()[][]
The select parameter values.
Type Parameters
- T
Return Value
The items returned by the select command or an empty list if no items were returnedRemarks
Care should be taken when selecting against potentially large result sets as all
available results are returned.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | If the selectStatement parameter is null |
System..::..ArgumentOutOfRangeException | If the selectStatement parameter is empty |
AmazonSimpleDBException | If the request to SimpleDB fails for any reason |
Simol..::..SimolDataException | If the SimpleDB item cannot be converted into the requested item type |
Simol..::..SimolConfigurationException | If no valid SimpleDB mapping can be configured for the requested item type |