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
2023-08-10 09:04:36 +02:00

17 lines
533 B
C#

using Microsoft.EntityFrameworkCore;
namespace Lookup.Database;
/// <summary>
/// Common interface for <see cref="IEntity"/> variants
/// which reference <see cref="IValueEntity{TKey,TValue}"/> instances
/// </summary>
public interface IKeyEntity<TKey, TValue> : IEntity
where TKey : class, IKeyEntity<TKey, TValue>
where TValue : class, IValueEntity<TKey, TValue>
{
/// <summary>
/// The referenced <see cref="IValueEntity{TKey,TValue}"/> instances
/// </summary>
DbSet<IValueEntity<TKey, TValue>> Values { get; }
}