Aerospike LINDPad Driver

ToCodeAPI..::..ToAPICodeBatch Method

Generates Aerospike or LINQPad API batch code based on ToCodeAPI..::..Options.

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

Syntax


public static IEnumerable<string> ToAPICodeBatch(
	this IEnumerable<ARecord> records,
	ToCodeAPI..::..Options codeOptions,
	bool useAerospikeAPI
)

Parameters

records
Type: IEnumerable<(Of <(<'ARecord>)>)>
Collection of ARecord that will be used to generate batch API Code.
codeOptions
Type: Aerospike.Database.LINQPadDriver.Extensions..::..ToCodeAPI..::..Options
Code Generation Options.
useAerospikeAPI
Type: Boolean
if set to true, the code generated will be based on the native Aerospike API driver.

Return Value

Returns a collection of generated API code where each element is a separate Batch statement.