Notes
This commit is contained in:
parent
4c2b5cca93
commit
43b4d50e43
28 changed files with 674 additions and 249 deletions
20
shared/InkForge.Data/Entities.cs
Normal file
20
shared/InkForge.Data/Entities.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue