< Summary

Class:WinSolutions.Sveta.Server.Data.DataModel.Entities.Configuration
Assembly:WinSolutions.Sveta.Server
File(s):/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Data/DataModel/Entities/Configuration.cs
Covered lines:7
Uncovered lines:0
Coverable lines:7
Total lines:45
Line coverage:100% (7 of 7)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
get_Section()100%100%
get_Key()100%100%
get_Encrypted()100%100%
get_ValueType()100%100%
get_ValueTypeId()100%100%
get_Value()100%100%
get_Description()100%100%

File(s)

/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Data/DataModel/Entities/Configuration.cs

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