Aerospike.Database.LINQPadDriver.Extensions Namespace
Aerospike LINDPad Driver

ANamespaceAccess..::..BatchWriteObject<(Of <(<'P, T>)>)> Method

Writes a collection of T objects to setName.

Namespace:  Aerospike.Database.LINQPadDriver.Extensions
Assembly:  Aerospike.Database.LINQPadDriver (in Aerospike.Database.LINQPadDriver.dll)

Syntax


public bool BatchWriteObject<P, T>(
	string setName,
	IEnumerable<ValueTuple<P, T>> objRecords,
	BatchPolicy batchPolicy,
	BatchWritePolicy batchWritePolicy,
	ParallelOptions parallelOptions,
	Func<string, string, Object, bool, Object> transform,
	string documentBinName
)

Type Parameters

P
The Primary Key Type
T
instance type

Parameters

setName
Type: String
Set name or null for the null set
objRecords
Type: IEnumerable<(Of <(<'ValueTuple<(Of <(<'P, T>)>)>>)>)>
batchPolicy
Type: BatchPolicy
batchWritePolicy
Type: BatchWritePolicy
parallelOptions
Type: ParallelOptions
transform
Type: Func<(Of <(<'String, String, Object, Boolean, Object>)>)>
A action that is called to perform customized transformation. First argument -- the name of the property/field within the instance/class Second argument -- the name of the bin (can be different from property/field name if BinNameAttribute is defined) Third argument -- the instance being transformed Fourth argument -- if true the instance is within another object. Returns the new transformed object or null to indicate that this instance should be skipped.
documentBinName
Type: String
If provided the record is created as a document and this will be the name of the bin.

Return Value

True if successful

Exceptions


ExceptionCondition
TypeAccessExceptionThrown if cannot write objRecords

See Also


BatchPolicy
BatchWritePolicy
[BatchWrite{P,V}(string, IEnumerable{ValueTuple{P, IDictionary{string, V}}}, BatchPolicy, BatchWritePolicy, ParallelOptions)]
[BatchWriteRecord{R}(IEnumerable{R}, BatchPolicy, BatchWritePolicy, ParallelOptions)]
[WriteObject{T}(string, dynamic, T, Func{string, string, object, bool, object}, string, WritePolicy, TimeSpan?)]