C# Класс Felinesoft.UmbracoCodeFirst.DataTypes.UmbracoJsonDataType

A data type base which allows the derived type to be serialised to and deserialised from JSON using JsonConvert
Наследование: IUmbracoNtextDataType
Показать файл Открыть проект

Открытые методы

Метод Описание
Initialise ( string dbValue ) : void

Initialises the current instance with the values deserialised from the given JSON string

Serialise ( ) : string

Serialises the current instance to a JSON string

Защищенные методы

Метод Описание
UmbracoJsonDataType ( JsonSerializerSettings serializerSettings ) : System

Constructs a new instance of UmbracoJsonDataType

UmbracoJsonDataType ( NullValueHandling nullHandling = NullValueHandling.Include ) : System

Constructs a new instance of UmbracoJsonDataType

Описание методов

Initialise() публичный Метод

Initialises the current instance with the values deserialised from the given JSON string
public Initialise ( string dbValue ) : void
dbValue string The JSON string
Результат void

Serialise() публичный Метод

Serialises the current instance to a JSON string
public Serialise ( ) : string
Результат string

UmbracoJsonDataType() защищенный Метод

Constructs a new instance of UmbracoJsonDataType
protected UmbracoJsonDataType ( JsonSerializerSettings serializerSettings ) : System
serializerSettings Newtonsoft.Json.JsonSerializerSettings Defines how (de)serialisation is done by Newtonsoft JSON
Результат System

UmbracoJsonDataType() защищенный Метод

Constructs a new instance of UmbracoJsonDataType
protected UmbracoJsonDataType ( NullValueHandling nullHandling = NullValueHandling.Include ) : System
nullHandling NullValueHandling Defines how null properties are serialised
Результат System