14 lines
482 B
C#
14 lines
482 B
C#
using Company.Domain.AdminMonthlyOverviewAgg;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace CompanyManagment.EFCore.Mapping;
|
|
|
|
public class AdminMonthlyOverviewMapping:IEntityTypeConfiguration<AdminMonthlyOverview>
|
|
{
|
|
public void Configure(EntityTypeBuilder<AdminMonthlyOverview> builder)
|
|
{
|
|
builder.HasKey(x => x.id);
|
|
builder.Property(x => x.Status).HasConversion<string>().HasMaxLength(155);
|
|
}
|
|
} |