| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Text; |
| | | 4 | | using System.ComponentModel.DataAnnotations; |
| | | 5 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 6 | | |
| | | 7 | | namespace WinSolutions.Sveta.Server.Data.DataModel.Entities |
| | | 8 | | { |
| | | 9 | | [Table("sysConfigurations")] |
| | | 10 | | public class Configuration : ExternalRecord, ITrackableRecord |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// Название секции. Лучше указывать, чтобы не путаться среди одноименных |
| | | 14 | | /// </summary> |
| | 4758 | 15 | | public string Section { get; set; } |
| | | 16 | | /// <summary> |
| | | 17 | | /// Название ключа |
| | | 18 | | /// </summary> |
| | | 19 | | [Required] |
| | 4757 | 20 | | public string Key { get; set; } |
| | | 21 | | /// <summary> |
| | | 22 | | /// Указывает зашифровано ли значение |
| | | 23 | | /// </summary> |
| | 4757 | 24 | | public bool Encrypted { get; set; } |
| | | 25 | | /// <summary> |
| | | 26 | | /// Тип значения (string, int, bool, etc). Имеет описательный характер, для понимания какие значения ожидаются в |
| | | 27 | | /// </summary> |
| | | 28 | | [Required] |
| | 4732 | 29 | | public ConfigurationsDataType ValueType { get; set; } |
| | | 30 | | /// <summary> |
| | | 31 | | /// Идентификатор типа значения |
| | | 32 | | /// </summary> |
| | 4750 | 33 | | public long ValueTypeId { get; set; } |
| | | 34 | | /// <summary> |
| | | 35 | | /// Значение |
| | | 36 | | /// </summary> |
| | | 37 | | [Required] |
| | 4758 | 38 | | public string Value { get; set; } |
| | | 39 | | /// <summary> |
| | | 40 | | /// Описание секции/ключа |
| | | 41 | | /// </summary> |
| | | 42 | | [Required] |
| | 4750 | 43 | | public string Description { get; set; } |
| | | 44 | | } |
| | | 45 | | } |