using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using RecNet.Domain.GameVersions; namespace RecNet.Infrastructure.Persistence.Configurations; public class GameVersionConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.HasKey(x => x.Version); builder.Property(x => x.Version) .HasMaxLength(32) .IsRequired(); builder.Property(x => x.IsValid) .IsRequired(); } }