C# Class formulate.app.Persistence.Internal.JsonDataValuePersistence

Handles persistence of data values to JSON on the file system.
Inheritance: IDataValuePersistence
Afficher le fichier Open project: rhythmagency/formulate

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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.

Method Details

Delete() public méthode

Deletes the specified data value.
public Delete ( System.Guid dataValueId ) : void
dataValueId System.Guid The ID of the data value to delete.
Résultat void

Delete() public méthode

Deletes the data value with the specified alias.
public Delete ( string dataValueAlias ) : void
dataValueAlias string /// The alias of the data value to delete. ///
Résultat void

JsonDataValuePersistence() public méthode

Default constructor.
public JsonDataValuePersistence ( ) : System
Résultat System

Persist() public méthode

Persists a data value to the file system.
public Persist ( DataValue dataValue ) : void
dataValue DataValue The data value to persist.
Résultat void

Retrieve() public méthode

Gets the data value with the specified ID.
public Retrieve ( System.Guid dataValueId ) : DataValue
dataValueId System.Guid /// The ID of the data value. ///
Résultat DataValue

Retrieve() public méthode

Gets the data value with the specified alias.
public Retrieve ( string dataValueAlias ) : DataValue
dataValueAlias string The alias of the data value.
Résultat DataValue

RetrieveChildren() public méthode

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.
Résultat IEnumerable