19 lines
603 B
C#
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);
|
|
}
|
|
} |