Aerospike LINDPad Driver

LPDHelpers..::..ToJson Method

Creates a JArray based on the collection of ARecord.

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

Syntax


public static JArray ToJson(
	IEnumerable<ARecord> records,
	string pkPropertyName,
	bool useDigest
)

Parameters

records
Type: IEnumerable<(Of <(<'ARecord>)>)>
A collection of ARecord
pkPropertyName
Type: String
The property name used for the primary key. The default is '_id'. If the primary key value is not present, the digest is used. In these cases the property value will be a sub property where that name will be '$oid' and the value is a byte string. If this is null, no PK property is written.
useDigest
Type: Boolean
If true, always use the PK digest as the primary key. If false, use the PK value is present, otherwise use the digest. Default is false.

Return Value

Json Array of the records in the collection.

See Also


[ARecord.FromJson(string, string, dynamic, string, string, string, ANamespaceAccess)]
[ARecord.FromJson(string, string, dynamic, string, string, string, ANamespaceAccess)]
[ARecord.ToJson(string, bool)]
[SetRecords.ToJson(Exp, string, bool)]
[SetRecords.FromJson(string, dynamic, string, string, WritePolicy, TimeSpan?, bool)]
[SetRecords.FromJson(string, string, string, WritePolicy, TimeSpan?, bool)]