Puts multiple items into SimpleDB.

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

Syntax

C#
public void Put<T>(
	List<T> items
)
Visual Basic
Public Sub Put(Of T) ( _
	items As List(Of T) _
)
Visual C++
public:
generic<typename T>
virtual void Put(
	List<T>^ items
) sealed

Parameters

items
Type: System.Collections.Generic..::..List<(Of <(<'T>)>)>

Type Parameters

T

Implements

ISimol..::..Put<(Of <<'(T>)>>)(List<(Of <<'(T>)>>))

Remarks

Single items are put using the SimpleDB PutAttributes operation. Multiple items are put using the BatchPutAttributes operation. Lists of items are automatically split into multiple batches to fit within the 25 item limit for BatchPutAttributes.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionIf the items parameter is null
System..::..ArgumentExceptionIf the items parameter contains more than one type of item
AmazonSimpleDBExceptionIf the request to SimpleDB fails for any reason
Simol..::..SimolDataExceptionIf the item cannot be converted to a SimpleDB item
Simol..::..SimolConfigurationExceptionIf no valid SimpleDB mapping can be configured for the specified item type

See Also