RowsetBase FromJSON T  Method (JSONDataMap, RowsetBase , SetFieldFunc)NFX Class Library

[This is preliminary documentation and is subject to change.]

Reads either Table or Rowset from JSON created by WriteAsJSON.

Namespace: NFX.DataAccess.CRUD
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public static int FromJSON<T>(
	JSONDataMap jsonMap,
	ref RowsetBase result,
	SetFieldFunc setFieldFunc = null
)
where T : new(), TypedRow
Type Parameters

T

Return Value

Type: OnlineInt32
Total 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.
Remarks

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.
See Also