FineUICore 11.7
企业级 ASP.NET Core 控件库
|
https://stackoverflow.com/questions/33499760/how-to-include-column-metadata-in-json-for-an-empty-datatable The DataTableConverter that ships with Json.Net does not output column metadata. The column types are written out as the first row of the array in the JSON when the table is serialized. On deserialization, this metadata is used to reconstruct the table with the correct column types and names, even if there are no other rows. 更多...
继承自 JsonConverter .
Public 成员函数 | |
override bool | CanConvert (Type objectType) |
是否可以转换指定的对象类型 | |
override void | WriteJson (JsonWriter writer, object value, JsonSerializer serializer) |
写入JSON | |
override object | ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) |
读取JSON | |
https://stackoverflow.com/questions/33499760/how-to-include-column-metadata-in-json-for-an-empty-datatable The DataTableConverter that ships with Json.Net does not output column metadata. The column types are written out as the first row of the array in the JSON when the table is serialized. On deserialization, this metadata is used to reconstruct the table with the correct column types and names, even if there are no other rows.
override bool FineUICore.CustomDataTableConverter.CanConvert | ( | Type | objectType | ) |
是否可以转换指定的对象类型
objectType |
override object FineUICore.CustomDataTableConverter.ReadJson | ( | JsonReader | reader, |
Type | objectType, | ||
object | existingValue, | ||
JsonSerializer | serializer | ||
) |
读取JSON
reader | |
objectType | |
existingValue | |
serializer |
override void FineUICore.CustomDataTableConverter.WriteJson | ( | JsonWriter | writer, |
object | value, | ||
JsonSerializer | serializer | ||
) |
写入JSON
writer | |
value | |
serializer |