using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace OliverBooth.Data.Web.Configuration; /// /// Represents the configuration for the entity. /// internal sealed class ProgrammingLanguageConfiguration : IEntityTypeConfiguration { /// public void Configure(EntityTypeBuilder builder) { builder.ToTable("ProgrammingLanguage"); builder.HasKey(e => e.Key); builder.Property(e => e.Key).IsRequired(); builder.Property(e => e.Name).IsRequired(); } }