Initial implementation

This commit is contained in:
Simon Gruber
2023-08-10 09:04:36 +02:00
commit 4c4ed48e38
95 changed files with 4142 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
using Microsoft.EntityFrameworkCore;
namespace Lookup.Database;
/// <summary>
/// Common interface for <see cref="IEntity"/> variants
/// which are referenced by <see cref="IKeyEntity{TKey,TValue}"/> instances
/// </summary>
public interface IValueEntity<TKey, TValue> : IEntity
where TKey : class, IKeyEntity<TKey, TValue>
where TValue : class, IValueEntity<TKey, TValue>
{
/// <summary>
/// The referencing <see cref="IKeyEntity{TKey,TValue}"/> instances
/// </summary>
DbSet<IKeyEntity<TKey, TValue>> Keys { get; }
}