Click or drag to resize

Configuration2 Class

A single special database document that contains the names of registered child documents such as Location, Genre, Owner, etc. The configuration document acts as a kind of quick lookup for client apps who need to fill pick-lists of child document types. In a relational database, the configuration document would be a set of reference tables joined to the titles. Cosmos DB is not a relational database and does not support joins, so the configuration document is a loose substitute for the same concept.
Inheritance Hierarchy
System.Object
  Orthogonal.Hoarder.StdLib.Entity.Configuration2

Namespace: Orthogonal.Hoarder.StdLib.Entity
Assembly: Orthogonal.Hoarder.StdLib (in Orthogonal.Hoarder.StdLib.dll) Version: 8.0.9
Syntax
C#
[SerializableAttribute]
public class Configuration2 : IHoarderDocument

The Configuration2 type exposes the following members.

Constructors
 NameDescription
Public methodConfiguration2Initializes a new instance of the Configuration2 class
Top
Properties
 NameDescription
Public propertyActorGroups An array of child documents describing named groups of actors.
Public propertyActors An array of child documents describing registered actors (people or things appearing in pictures).
Public propertyGenres An array of child documents describing registered genres.
Public propertyid The primary key Id of the configuration document is the hard-coded value "Configuration2". Note that lower-case name is required to allow simple serialization to a Cosmos DB document.
Public propertyLastSaveTime The UTC time the configuration document was last saved.
Public propertyLocations An array of child documents describing registered locations.
Public propertyMedias An array of child documents describing registered media.
Public propertyOwners An array of child documents describing registered owners.
Public propertyPictureTypes An array of child documents describing registered picture types.
Public propertyPk The Partition Key is the fixed value "P1".
Public propertyRoles An array of child documents describing registered roles.
Public propertyTags An array of child documents describing registered tags.
Public propertyType Discriminates different types of documents in the database. There are currently only two types: Title document (Type=2) and Configuration document (Type=3).
Top
Methods
 NameDescription
Public methodToString
(Overrides Object.ToString())
Top
See Also