RowJsonConverter class
namespace: Serenity.JsonConverters assembly: Serenity.Net.Services
Serialize/deserialize a row
public class RowJsonConverter : JsonConverter<IRow>
Public Members
| name | description |
|---|---|
| RowJsonConverter() | The default constructor. |
| override CanConvert(…) | |
| override Read(…) | |
| override Write(…) | |
| static ShouldDeserializeExtension { get; set; } | Should deserialize extension. Returns the local hook if any is set through SetLocalShouldDeserializeExtension, otherwise the default hook. The local hook should be used for unit tests. |
| static ShouldSerializeExtension { get; set; } | Should serialize extension. Returns the local hook if any is set through SetLocalShouldSerializeExtension, otherwise the default hook. The local hook should be used for unit tests. |
| static SetLocalShouldDeserializeExtension(…) | Sets the local ShouldDeserializeExtension hook for the current thread and async context. Useful for background tasks, async methods, and testing to set the hook locally without affecting other threads or tests. |
| static SetLocalShouldSerializeExtension(…) | Sets the local ShouldSerializeExtension hook for the current thread and async context. Useful for background tasks, async methods, and testing to set the hook locally without affecting other threads or tests. |
See Also
- interface IRow
- Source: RowJsonConverter.cs