ARecord..::..FromJson Method (String, String, Object, String, String, String, ANamespaceAccess)
Given a Json string, creates a ARecord object that can but used to update the DB.
Namespace:
Aerospike.Database.LINQPadDriver.ExtensionsAssembly: Aerospike.Database.LINQPadDriver (in Aerospike.Database.LINQPadDriver.dll)
Syntax
Parameters
- nameSpace
- Type: String
The associated namespace of the set
- setName
- Type: String
The associated Set of the record
- primaryKey
- Type: Object
The primary key which can be: a C# value, digest byte array, Key, APrimaryKey, AValue, Value
- json
- Type: String
A valid Json string
- jsonBinName
- Type: String
If provided, the Json object is placed into this bin. If null (default), the each top level Json property will be associated with a bin. Note, if the property name is greater than the bin name limit, an Aerospike exception will occur during the put.
- ignorePKPropertyName
- Type: String
Removes the primary key property, if present, so that it is not added to the record. If null, all properties are added to the record.
- setAccess
- Type: Aerospike.Database.LINQPadDriver.Extensions..::..ANamespaceAccess
The set instance that will be associated to this record.
Return Value
Returns ARecord instance.Remarks
C#
$date
C#
$datetime
C#
"bucket_start_date": "$date": { "$numberLong": "1545886800000"}}
C#
$datetimeoffset
C#
"bucket_start_datetimeoffset": "$datetimeoffset": { "$numberLong": "1545886800000"}}
C#
$timespan
C#
"bucket_start_time": "$timespan": { "$numberLong": "1545886800000"}}
C#
$timestamp
C#
$guid
C#
$uuid
C#
$guid
C#
$uuid
C#
$numeric
C#
$numberint64
C#
$numberlong
C#
$long
C#
$numberint32
C#
$numberint
C#
$int
C#
$numberdecimal
C#
$decimal
C#
$numberdouble
C#
$double
C#
$numberfloat
C#
$single
C#
$float
C#
$numberint16
C#
$numbershort
C#
$short
C#
$numberuint32
C#
$numberuint
C#
$uint
C#
$numberuint64
C#
$numberulong
C#
$ulong
C#
$numberuint16
C#
$numberushort
C#
$ushort
C#
$bool
C#
$boolean
C#
$type