Init
This commit is contained in:
13
Prefab/Domain/Common/IEntity.cs
Normal file
13
Prefab/Domain/Common/IEntity.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace Prefab.Domain.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Interface representation of an entity. All entities should implement this.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type that will represent the entity's ID field.</typeparam>
|
||||
public interface IEntity<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the ID of the entity.
|
||||
/// </summary>
|
||||
T Id { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user