mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11:10 +00:00
Continues core Domain structure modeling
This commit is contained in:
1 parent
c39652066e
commit
50c15cf889
54 files changed
+2318
-159
No files matched your search
@@ -7,12 +7,15 @@
|
||||
public abstract class Entity<TId> : IEquatable<Entity<TId>> where TId : notnull
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
/// Gets the unique identifier of the entity.
|
||||
/// </summary>
|
||||
public TId Id { get; protected set; }
|
||||
#endregion
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Overload C-tor.
|
||||
/// Initializes a new instance of the <see cref="Entity{TId}"/> class.
|
||||
/// </summary>
|
||||
/// <param name="id">The id of the entity.</param>
|
||||
protected Entity(TId id)
|
||||
@@ -21,6 +24,9 @@ public abstract class Entity<TId> : IEquatable<Entity<TId>> where TId : notnull
|
||||
}
|
||||
|
||||
#pragma warning disable CS8618
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Entity{TId}"/> class.
|
||||
/// </summary>
|
||||
protected Entity() // only needed during reflection
|
||||
{
|
||||
|
||||
|
||||
Reference in new issue
Block a user