21 lines
748 B
C#
21 lines
748 B
C#
using Company.Domain.EmployeeComputeOptionsAgg;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace CompanyManagment.EFCore.Mapping;
|
|
|
|
public class EmployeeComputeOptionsMapping : IEntityTypeConfiguration<EmployeeComputeOptions>
|
|
{
|
|
public void Configure(EntityTypeBuilder<EmployeeComputeOptions> builder)
|
|
{
|
|
builder.ToTable("EmployeeComputeOptions");
|
|
builder.HasKey(x => x.id);
|
|
|
|
builder.Property(x => x.WorkshopId);
|
|
builder.Property(x => x.EmployeeId);
|
|
builder.Property(x => x.ComputeOptions).HasMaxLength(50);
|
|
builder.Property(x => x.YearsOptions).HasMaxLength(50);
|
|
builder.Property(x => x.BonusesOptions).HasMaxLength(50);
|
|
|
|
}
|
|
} |