18 lines
592 B
C#
18 lines
592 B
C#
using Company.Domain.EmployeeInsurancListDataAgg;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace CompanyManagment.EFCore.Mapping;
|
|
|
|
public class EmployeeInsurancListDataMapping : IEntityTypeConfiguration<EmployeeInsurancListData>
|
|
{
|
|
public void Configure(EntityTypeBuilder<EmployeeInsurancListData> builder)
|
|
{
|
|
builder.ToTable("EmployeeInsurancListData");
|
|
builder.HasKey(x => x.id);
|
|
|
|
builder.Property(x => x.LeftWorkDate)
|
|
.HasColumnType("datetime2(7)")
|
|
.IsRequired(false);
|
|
}
|
|
} |