using FindAndDrive.Domain.Models.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace FindAndDrive.Persistence.EntityConfigurations { public class ApplicantAuditLogConfiguration: IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.HasKey(k => k.ApplicantAuditLogId); //Not necassary to specify all collumns, collumns taken from models //Specify max length on string fields only //builder.Property(p => p.Title).HasMaxLength(5); } } }