Files
Backend-Api/CompanyManagment.EFCore/Mapping/InsuranceYearlySalaryMapping.cs
2024-07-09 19:31:25 +03:30

49 lines
1.8 KiB
C#

using Company.Domain.InsuranceYearlySalaryAgg;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace CompanyManagment.EFCore.Mapping;
public class InsuranceYearlySalaryMapping : IEntityTypeConfiguration<InsuranceYearlySalary>
{
public void Configure(EntityTypeBuilder<InsuranceYearlySalary> builder)
{
builder.ToTable("InsuranceYearlySalaries");
builder.HasKey(x => x.id);
builder.Property(x => x.StartDate);
builder.Property(x => x.EndDate);
builder.Property(x => x.Year);
builder.Property(x => x.Group1);
builder.Property(x => x.Group2);
builder.Property(x => x.Group3);
builder.Property(x => x.Group4);
builder.Property(x => x.Group5);
builder.Property(x => x.Group6);
builder.Property(x => x.Group7);
builder.Property(x => x.Group8);
builder.Property(x => x.Group9);
builder.Property(x => x.Group10);
builder.Property(x => x.Group11);
builder.Property(x => x.Group12);
builder.Property(x => x.Group13);
builder.Property(x => x.Group14);
builder.Property(x => x.Group15);
builder.Property(x => x.Group16);
builder.Property(x => x.Group17);
builder.Property(x => x.Group18);
builder.Property(x => x.Group19);
builder.Property(x => x.Group20);
builder.Property(x => x.Group21);
builder.Property(x => x.Group22);
builder.Property(x => x.Group23);
builder.Property(x => x.Group24);
builder.Property(x => x.Group25);
builder.Property(x => x.Group26);
builder.Property(x => x.Group27);
builder.Property(x => x.Group28);
builder.Property(x => x.Group29);
builder.Property(x => x.Group30);
}
}