Aerospike LINDPad Driver

ToCodeAPI..::..ToAPICode Method (IEnumerable<(Of <(<'ARecord>)>)>, Options, Boolean)

Generates either the Aerospike or LINQPad API code.

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

Syntax


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

Parameters

records
Type: IEnumerable<(Of <(<'ARecord>)>)>
Collection of ARecord that will be used to generate 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 Get or Put statement.