Files
Backend-Api/CompanyManagment.EFCore/Mapping/AdminMonthlyOverviewMapping.cs
2025-05-18 18:24:23 +03:30

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);
}
}