Helpers..::..CreateBinRecord Method (Object, String, array<Bin>[]()[][])
Creates an array of bins based on item and additionalBins
Namespace:
Aerospike.Database.LINQPadDriverAssembly: Aerospike.Database.LINQPadDriver (in Aerospike.Database.LINQPadDriver.dll)
Syntax
Parameters
- item
- Type: Object
If item is an IDictionary<string, object> each element is evaluated and a new bin created where the key is the bin name and value is the bin's value if item is an IList<object> each element id evaluated and if the element is a list or dictionary, this method is recursively called. The bins created are added to the collection. If the element is not a list or dictionary, a bin is created using the prefix as the bin name and the element as the value. If item is neither of the above. A bin is created where prefix is the name and item is the value.
- prefix
- Type: String
Depending on the type of item will determine how it is used. If item is a dictionary, prefix is a prefix to the key as part of the bin name. If it is a list, the prefix is passed this method or used as the bin name... Otherwise it is used as the bin name.
- additionalBins
- Type: array<Bin>[]()[][]
Bins that will be part of the array of bins returned.