using Company.Domain.ZoneAgg; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace CompanyManagment.EFCore.Mapping; public class ZoneMapping : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.ToTable("Zones"); builder.HasKey(x => x.id); builder.Property(x => x.ZoneName).HasMaxLength(50); } }