This repository has been archived on 2024-06-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
thesis-src/Lookup/Lookup.Database/IValueEntity.cs
T
2023-08-10 09:04:36 +02:00

17 lines
536 B
C#

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; }
}