Executes the specified select statement against SimpleDB using default select options and returns a list of item values.

Namespace: Simol
Assembly: Simol (in Simol.dll) Version: 1.0.0.0

Syntax

C#
public List<PropertyValues> SelectAttributes<T>(
	string selectStatement,
	params CommandParameter[] selectParams
)
Visual Basic
Public Function SelectAttributes(Of T) ( _
	selectStatement As String, _
	ParamArray selectParams As CommandParameter() _
) As List(Of PropertyValues)
Visual C++
public:
generic<typename T>
virtual List<PropertyValues^>^ SelectAttributes(
	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
Item type which defines mapping and formatting rules to use on return attributes

Return Value

The values returned by the select command or an emtpy list if no values were returned

Implements

ISimol..::..SelectAttributes<(Of <<'(T>)>>)(String, array<CommandParameter>[]()[][])

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 there are any property value conversion failures
Simol..::..SimolConfigurationExceptionIf no valid SimpleDB mapping can be configured for the specified item type

See Also