< Summary

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

Metrics

MethodLine coverage Branch coverage
get_GUID()0%100%
get_CreationDateTime()0%100%
get_CreatedByUserId()0%100%
get_ModificationDateTime()0%100%
get_ModifiedByUserId()0%100%
get_IsDeleted()0%100%
get_Id()0%100%

File(s)

/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Data/DataModel/Entities/RelationRecord.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    public class RelationRecord : ITrackableRecord
 10    {
 11        /// <summary>
 12        /// Идентификатор
 13        /// </summary>
 14        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 15        [Required]
 016        public Guid GUID { get; set; } = Guid.NewGuid();
 17
 18        /// <summary>
 19        /// Дата создания записи
 20        /// </summary>
 021        public DateTime CreationDateTime { get; set; } = DateTime.UtcNow;
 22
 23        /// <summary>
 24        /// Создатель записи
 25        /// </summary>
 026        public long? CreatedByUserId { get; set; }
 27
 28        [NotMapped]
 029        public DateTime? ModificationDateTime { get; set; } = null;
 30
 31        [NotMapped]
 032        public long? ModifiedByUserId { get; set; } = null;
 33
 34        [NotMapped]
 035        public bool IsDeleted { get; set; }
 36
 37        [NotMapped]
 038        public long Id { get; set; }
 39    }
 40}