This commit is contained in:
Jöran Malek 2024-04-05 12:31:34 +02:00
parent 4c2b5cca93
commit 43b4d50e43
28 changed files with 674 additions and 249 deletions

View file

@ -0,0 +1,20 @@
namespace InkForge.Data
{
public abstract class ValueEntity<TEntity>
{
public TEntity Value { get; set; } = default!;
}
public abstract class Entity<TEntity, TKey>
: ValueEntity<TEntity>
{
public TKey Id { get; set; } = default!;
}
public abstract class Entity<TSelf, TEntity, TKey>
: Entity<TEntity, TKey>
where TSelf : Entity<TSelf, TEntity, TKey>
{
public TSelf? Parent { get; set; }
}
}