19 lines
585 B
C#
19 lines
585 B
C#
using Company.Domain.SalaryAidAgg;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace CompanyManagment.EFCore.Mapping;
|
|
|
|
public class SalaryAidMapping:IEntityTypeConfiguration<SalaryAid>
|
|
{
|
|
public void Configure(EntityTypeBuilder<SalaryAid> builder)
|
|
{
|
|
builder.ToTable("SalaryAids");
|
|
builder.HasKey(x => x.id);
|
|
|
|
builder.Property(x => x.CreatedByUserType).HasConversion<string>().HasMaxLength(50);
|
|
builder.Property(x => x.LastModifiedByUserType).HasConversion<string>().HasMaxLength(50);
|
|
|
|
|
|
}
|
|
} |