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.LINQPadDriverAssembly: Aerospike.Database.LINQPadDriver (in Aerospike.Database.LINQPadDriver.dll)
Syntax
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.