42 lines
1.4 KiB
C#
42 lines
1.4 KiB
C#
using Company.Domain.ClassifiedSalaryAgg;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace CompanyManagment.EFCore.Mapping;
|
|
|
|
public class ClassifiedSalaryMapping : IEntityTypeConfiguration<ClassifiedSalary>
|
|
{
|
|
public void Configure(EntityTypeBuilder<ClassifiedSalary> builder)
|
|
{
|
|
builder.ToTable("ClassifiedSalaries");
|
|
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);
|
|
|
|
|
|
|
|
|
|
}
|
|
} |