Aerospike LINDPad Driver

Helpers..::..TransForm Method

Transform object into a Dictionary that can be used with generating a document or bins in Aerospike. BinNameAttribute -- defines the bin name, otherwise the kvPair name is used BinIgnoreAttribute -- will ignore this kvPair

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

Syntax


public static Dictionary<string, Object> TransForm(
	Object instance,
	Func<string, string, Object, bool, Object> transform,
	bool nestedItem
)

Parameters

instance
Type: Object
Item being transformed
transform
Type: Func<(Of <(<'String, String, Object, Boolean, Object>)>)>
A action that is called to perform customized transformation. First argument -- the name of the kvPair Second argument -- the name of the bin (can be different from kvPair 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 kvPair should be skipped.
nestedItem
Type: Boolean
Indicates if item was nested inside another object.

Return Value

The Dictionary used to pass to Aerospike's put command.

See Also


[T:Aerospike.Database.LINQPadDriver.Helpers.CreateBinRecord``1(System.Collections.Generic.IEnumerable{System.ValueTuple{System.String,``0}},System.String,Aerospike.Client.Bin[])]