using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Lookup.Database.Configurations; internal class LookupConfiguration : IEntityTypeConfiguration> where TKey : class, IKeyEntity where TValue : class, IValueEntity { /// public void Configure(EntityTypeBuilder> builder) { builder .HasMany(e => e.Values) .WithMany(e => e.Keys); } }