using GozareshgirProgramManager.Domain.ProjectAgg.Entities; using GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection; using GozareshgirProgramManager.Infrastructure.Persistence._Common; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace GozareshgirProgramManager.Infrastructure.Persistence.Mappings; public class AdditionalTimeMapping:IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.ToTable("AdditionalTimes"); builder.HasKey(ts => ts.Id); builder.Property(ts => ts.Id) .ValueGeneratedNever(); builder.Property(x => x.Reason).HasMaxLength(1000); builder.Property(x => x.Hours).HasTimeSpanConversion(); } }