Class JsonDataTable
JSON contract for a data table used by Tripous Web.
public class JsonDataTable
- Inheritance
-
JsonDataTable
- Inherited Members
- Extension Methods
Constructors
JsonDataTable()
Constructor.
public JsonDataTable()
JsonDataTable(DataTable)
Constructor.
public JsonDataTable(DataTable Source)
Parameters
SourceDataTable
JsonDataTable(DataTable, TableDef)
Constructor.
public JsonDataTable(DataTable Source, TableDef TableDef)
Parameters
Properties
AutoGenerateGuidKeys
True when key values should be generated as Guid strings.
public bool AutoGenerateGuidKeys { get; set; }
Property Value
Columns
The columns.
public List<JsonDataColumn> Columns { get; set; }
Property Value
Deleted
The deleted rows.
public List<JsonDataRow> Deleted { get; set; }
Property Value
DetailField
The detail field name.
public string DetailField { get; set; }
Property Value
Details
The detail table names.
public List<string> Details { get; set; }
Property Value
KeyField
The key field name.
public string KeyField { get; set; }
Property Value
Locators
The table-specific locator definitions.
public JsonLocatorList Locators { get; set; }
Property Value
MasterField
The master field name.
public string MasterField { get; set; }
Property Value
MasterTableName
The master table name.
public string MasterTableName { get; set; }
Property Value
Name
The table name.
public string Name { get; set; }
Property Value
Rows
The rows.
public List<JsonDataRow> Rows { get; set; }
Property Value
Methods
RowsTo(DataTable)
Copies rows to a data table, preserving row state.
public void RowsTo(DataTable Table)
Parameters
TableDataTable
ToJObject()
Converts this instance to a JSON object.
public JsonObject ToJObject()
Returns
ToJObject(DataTable, TableDef)
Converts a data table to a JSON object.
public static JsonObject ToJObject(DataTable Source, TableDef TableDef = null)
Parameters
Returns
ToJson()
Converts this instance to JSON text.
public string ToJson()