[This is preliminary documentation and is subject to change.]
Reads either Table or Rowset from JSON created by WriteAsJSON.
Namespace: NFX.DataAccess.CRUDAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static int FromJSON<T>(
JSONDataMap jsonMap,
ref RowsetBase result,
SetFieldFunc setFieldFunc = null
)
where T : new(), TypedRow
public static int FromJSON<T>(
JSONDataMap jsonMap,
ref RowsetBase result,
SetFieldFunc setFieldFunc = null
)
where T : new(), TypedRow
Public Shared Function FromJSON(Of T As {New, TypedRow}) (
jsonMap As JSONDataMap,
ByRef result As RowsetBase,
Optional setFieldFunc As SetFieldFunc = Nothing
) As Integer
Public Shared Function FromJSON(Of T As {New, TypedRow}) (
jsonMap As JSONDataMap,
ByRef result As RowsetBase,
Optional setFieldFunc As SetFieldFunc = Nothing
) As Integer
public:
generic<typename T>
where T : gcnew(), TypedRow
static int FromJSON(
JSONDataMap^ jsonMap,
RowsetBase^% result,
SetFieldFunc^ setFieldFunc = nullptr
)
public:
generic<typename T>
where T : gcnew(), TypedRow
static int FromJSON(
JSONDataMap^ jsonMap,
RowsetBase^% result,
SetFieldFunc^ setFieldFunc = nullptr
)
static member FromJSON :
jsonMap : JSONDataMap *
result : RowsetBase byref *
?setFieldFunc : SetFieldFunc
(* Defaults:
let _setFieldFunc = defaultArg setFieldFunc null
*)
-> int when 'T : new() and TypedRow
static member FromJSON :
jsonMap : JSONDataMap *
result : RowsetBase byref *
?setFieldFunc : SetFieldFunc
(* Defaults:
let _setFieldFunc = defaultArg setFieldFunc null
*)
-> int when 'T : new() and TypedRow
- T
Return Value
Type:
Int32Total number of rows found in JSON. If this number is less than
result.Count, then not all rows matched the schema of the resulting rowset.
The schema of "result" must match the schema of the typed row T.
It's the responsibility of the caller to clear the "result" prior to
calling this function - the function appends rows to existing rowset.