Executes the specified select statement against SimpleDB using default select options.

Namespace: Simol
Assembly: 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 returned

Remarks

Care should be taken when selecting against potentially large result sets as all available results are returned.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionIf the selectStatement parameter is null
System..::..ArgumentOutOfRangeExceptionIf the selectStatement parameter is empty
AmazonSimpleDBExceptionIf the request to SimpleDB fails for any reason
Simol..::..SimolDataExceptionIf the SimpleDB item cannot be converted into the requested item type
Simol..::..SimolConfigurationExceptionIf no valid SimpleDB mapping can be configured for the requested item type

See Also