C# Класс formulate.app.Persistence.Internal.JsonDataValuePersistence

Handles persistence of data values to JSON on the file system.
Наследование: IDataValuePersistence
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

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

Метод Описание
Delete ( System.Guid dataValueId ) : void

Deletes the specified data value.

Delete ( string dataValueAlias ) : void

Deletes the data value with the specified alias.

JsonDataValuePersistence ( ) : System

Default constructor.

Persist ( DataValue dataValue ) : void

Persists a data value to the file system.

Retrieve ( System.Guid dataValueId ) : DataValue

Gets the data value with the specified ID.

Retrieve ( string dataValueAlias ) : DataValue

Gets the data value with the specified alias.

RetrieveChildren ( System.Guid parentId ) : IEnumerable

Gets all the data values that are the children of the folder with the specified ID.

You can specify a parent ID of null to get the root data values.

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

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

Deletes the specified data value.
public Delete ( System.Guid dataValueId ) : void
dataValueId System.Guid The ID of the data value to delete.
Результат void

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

Deletes the data value with the specified alias.
public Delete ( string dataValueAlias ) : void
dataValueAlias string /// The alias of the data value to delete. ///
Результат void

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

Default constructor.
public JsonDataValuePersistence ( ) : System
Результат System

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

Persists a data value to the file system.
public Persist ( DataValue dataValue ) : void
dataValue DataValue The data value to persist.
Результат void

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

Gets the data value with the specified ID.
public Retrieve ( System.Guid dataValueId ) : DataValue
dataValueId System.Guid /// The ID of the data value. ///
Результат DataValue

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

Gets the data value with the specified alias.
public Retrieve ( string dataValueAlias ) : DataValue
dataValueAlias string The alias of the data value.
Результат DataValue

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

Gets all the data values that are the children of the folder with the specified ID.
You can specify a parent ID of null to get the root data values.
public RetrieveChildren ( System.Guid parentId ) : IEnumerable
parentId System.Guid The parent ID.
Результат IEnumerable