using Domains; using Domains.ApplicantDomain; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Infrastructure.Database.Applicants.Configuration; public static class PassportConfiguration where T : class, IEntity { public static void Configure(OwnedNavigationBuilder entity) { entity.Property(p => p.Number) .IsUnicode(false) .HasMaxLength(ConfigurationConstraints.PassportNumberLength); entity.Property(p => p.Issuer) .IsUnicode(false) .HasMaxLength(ConfigurationConstraints.IssuerNameLength); } }