using Company.Domain.WorkingHoursTempAgg; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace CompanyManagment.EFCore.Mapping; public class WorkingHoursTempMapping :IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.ToTable("WorkingHoursTemp"); builder.HasKey(x => x.id); builder.Property(x => x.ShiftWork).HasMaxLength(2); builder.Property(x => x.WorkShopAddress2).HasMaxLength(500); builder.HasMany(x => x.WorkingHoursTempItemList) .WithOne(x => x.WorkingHoursTemp) .HasForeignKey(x => x.WorkingHoursTempId); } }