Introduces the closed generic persistence toolkit

This commit is contained in:
BinaryAlley committed 2026-09-27 21:20:35 +03:00
1 parent 9ba9b089b5
commit a632f4ced7
8 files changed
+270 -19

No files matched your search

@@ -11,4 +11,4 @@ namespace Lumina.Application.Common.DataAccess.Entities.Common;
[DebuggerDisplay("Name: {Name}")]
public record GenreEntity(
string? Name
);
) : ISharedReferenceEntity;
@@ -0,0 +1,12 @@
namespace Lumina.Application.Common.DataAccess.Entities.Common;
/// <summary>
/// Interface for a shared reference entity, whose identity is its name and whose rows are shared across the whole storage medium instead of being owned by a single parent.
/// </summary>
public interface ISharedReferenceEntity
{
/// <summary>
/// Gets the name that identifies the shared reference.
/// </summary>
string? Name { get; }
}
@@ -11,4 +11,4 @@ namespace Lumina.Application.Common.DataAccess.Entities.Common;
[DebuggerDisplay("Name: {Name}")]
public record TagEntity(
string? Name
);
) : ISharedReferenceEntity;