Skip to content

Domain Model

Patrick edited this page May 11, 2018 · 5 revisions

SectionEntity

Properties

  • Id - Unique Id.
  • SectionName - Unique Section Name.
  • ApplicationName - Unique Categorisation. This would usually be the name of an application, service or component.
  • Aspect - Cross-cutting concern. Such as Settings or Localization. see Categorization of Data for more details.
  • Discriminator - Data Categorization. see Categorization of Data for more details.
  • Tenant - Segment data based on Tenant. see Categorization of Data for more details.
  • Modified - DateTime last modified.
  • ModifiedUser - User to last modify record.
  • Timestamp - ConcurrencyToken.

SettingEntity

Properties

  • Id - Unique Id.
  • SectionId - Foreign Key related to SectionEntity.
  • SectionId - Related SectionEntity (navigation property).
  • Key - Unique Key for setting.
  • Json - Value stored in json format. Must be able to deserialize using Newtonsoft.Json.JsonConvert.DeserializeObject
  • DefaultValue - The provides the means to revert a setting to a default value.
  • ValueType - If the value is set via the SetValue method, the value type will also be stored.
  • Modified - DateTime last modified.
  • ModifiedUser - User to last modify record.
  • Timestamp - ConcurrencyToken.

Methods

  • T GetValue() - Returns a deserialised instance of the value contained in the Json field.
  • SetValue(object value) - Will serialise the value provided as a Json compliant string and assign to the Json field.

Diagram

Clone this wiki locally