using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace OliverBooth.Data.Web.Configuration; /// /// Represents the configuration for the entity. /// internal sealed class CodeSnippetConfiguration : IEntityTypeConfiguration { /// public void Configure(EntityTypeBuilder builder) { builder.ToTable("CodeSnippet"); builder.HasKey(e => new { e.Id, e.Language }); builder.Property(e => e.Id); builder.Property(e => e.Language); builder.Property(e => e.Content); } }