using Microsoft.EntityFrameworkCore.Metadata.Builders; using Microsoft.EntityFrameworkCore; using ConcursoProjetos.Domain.Entities; namespace ConcursoProjetos.Data.Configurations; public class TipoDocumentoConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.ToTable("TipoDocumento"); builder.HasKey(p => p.Id); builder.Property(p => p.Id) .ValueGeneratedNever(); builder.Property(p => p.Nome) .HasColumnType("nvarchar") .HasMaxLength(100); builder.Property(p => p.Descricao) .HasColumnType("nvarchar"); } }