< Summary

Information
Class: ArturRios.Data.Relational.Core.Entities.Entity<T>
Assembly: ArturRios.Data.Relational.Core
File(s): /home/ci/agent/workspace/dotnet-data-docs_main/app/src/ArturRios.Data.Relational.Core/Entities/Entity.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 16
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 1
Fully covered methods: 1
Total methods: 1
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Id()100%11100%

File(s)

/home/ci/agent/workspace/dotnet-data-docs_main/app/src/ArturRios.Data.Relational.Core/Entities/Entity.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations.Schema;
 2
 3namespace ArturRios.Data.Relational.Core.Entities;
 4
 5/// <summary>
 6///     Abstract base class for data entities keyed by an identifier of type <typeparamref name="TKey" />.
 7/// </summary>
 8/// <typeparam name="TKey">The primary key type, e.g. <see cref="long" />, <see cref="Guid" /> or <see cref="string" />.
 9public abstract class Entity<TKey> where TKey : IEquatable<TKey>
 10{
 11    /// <summary>
 12    ///     The unique identifier for the entity.
 13    /// </summary>
 14    [Column(Order = 1)]
 14415    public TKey Id { get; set; } = default!;
 16}

Methods/Properties

get_Id()