using Domains.ApplicantDomain; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Infrastructure.Database.Applicants.Configuration { public class PassportConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder entity) { entity.Property(p => p.Number) .IsUnicode(false) .HasMaxLength(20); entity.Property(p => p.Issuer) .IsUnicode(false) .HasMaxLength(200); } } }