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

19 lines
603 B
C#

using Company.Domain.RollCallPlanAgg;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace CompanyManagment.EFCore.Mapping;
public class RollCallPlanMapping : IEntityTypeConfiguration<RollCallPlan>
{
public void Configure(EntityTypeBuilder<RollCallPlan> builder)
{
builder.ToTable("RollCallPlans");
builder.HasKey(x => x.id);
builder.Property(x => x.FinalAmont);
builder.Property(x => x.IncreasePercentage);
builder.Property(x => x.BaseAmont);
builder.Property(x => x.MaxPersonValid);
}
}