using Domains.ApplicantDomain; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Infrastructure.Database.Applicants.Configuration; public class PlaceOfWorkConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder entity) { entity.OwnsOne(p => p.Address, AddressConfiguration.Configure); entity.Property(p => p.Name) .IsUnicode(false) .HasMaxLength(200); entity.Property(p => p.PhoneNum) .IsUnicode(false) .HasMaxLength(20); } }