Executes the specified select statement against SimpleDB using default select options
and returns a list of item values.
Namespace: SimolAssembly: 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 returnedImplements
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
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 there are any property value conversion failures |
Simol..::..SimolConfigurationException | If no valid SimpleDB mapping can be configured for the specified item type |