mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 13:11:10 +00:00
eliminates region sections
This commit is contained in:
1 parent
705c02b90d
commit
405fc1ff9a
370 files changed
+47
-1618
No files matched your search
@@ -6,7 +6,6 @@
|
||||
/// <typeparam name="TId">The type representing the unique identifier for the Aggregate Root. It should be a non-nullable type.</typeparam>
|
||||
public abstract class AggregateRoot<TId> : Entity<TId> where TId : notnull
|
||||
{
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AggregateRoot{TId}"/> class.
|
||||
/// </summary>
|
||||
@@ -25,5 +24,4 @@ public abstract class AggregateRoot<TId> : Entity<TId> where TId : notnull
|
||||
|
||||
}
|
||||
#pragma warning restore CS8618
|
||||
#endregion
|
||||
}
|
||||
@@ -10,7 +10,6 @@ namespace Lumina.Domain.Common.Models.Core;
|
||||
/// <typeparam name="TId">The type representing the unique identifier for the Entity. It should be a non-nullable type.</typeparam>
|
||||
public abstract class Entity<TId> : IEquatable<Entity<TId>> where TId : notnull
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
/// Gets the unique identifier of the entity.
|
||||
/// </summary>
|
||||
@@ -25,9 +24,7 @@ public abstract class Entity<TId> : IEquatable<Entity<TId>> where TId : notnull
|
||||
/// Gets the date and time when the entity was last updated.
|
||||
/// </summary>
|
||||
public DateTime? Updated { get; set; }
|
||||
#endregion
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Entity{TId}"/> class.
|
||||
/// </summary>
|
||||
@@ -46,9 +43,7 @@ public abstract class Entity<TId> : IEquatable<Entity<TId>> where TId : notnull
|
||||
|
||||
}
|
||||
#pragma warning restore CS8618
|
||||
#endregion
|
||||
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
/// <summary>
|
||||
/// Indicates whether the current object is equal to another object of the same type.
|
||||
/// </summary>
|
||||
@@ -99,5 +94,4 @@ public abstract class Entity<TId> : IEquatable<Entity<TId>> where TId : notnull
|
||||
{
|
||||
return Id.GetHashCode();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -12,14 +12,11 @@ namespace Lumina.Domain.Common.Models.Core;
|
||||
[DebuggerDisplay("{Value}")]
|
||||
public abstract class EntityId<TId> : ValueObject
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
/// Gets the value representing the entity identifier.
|
||||
/// </summary>
|
||||
public TId Value { get; }
|
||||
#endregion
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EntityId{TId}"/> class.
|
||||
/// </summary>
|
||||
@@ -37,9 +34,7 @@ public abstract class EntityId<TId> : ValueObject
|
||||
{
|
||||
}
|
||||
#pragma warning restore CS8618
|
||||
#endregion
|
||||
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
/// <summary>
|
||||
/// Gets the list of items that define equality of the object.
|
||||
/// </summary>
|
||||
@@ -57,5 +52,4 @@ public abstract class EntityId<TId> : ValueObject
|
||||
{
|
||||
return Value?.ToString() ?? base.ToString();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -11,7 +11,6 @@ namespace Lumina.Domain.Common.Models.Core;
|
||||
/// </summary>
|
||||
public abstract class ValueObject : IEquatable<ValueObject>
|
||||
{
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
/// <summary>
|
||||
/// Gets the list of items that define equality of the object.
|
||||
/// </summary>
|
||||
@@ -72,5 +71,4 @@ public abstract class ValueObject : IEquatable<ValueObject>
|
||||
return GetEqualityComponents().Select(x => x?.GetHashCode() ?? 0)
|
||||
.Aggregate((x, y) => x ^ y);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
Reference in new issue
Block a user