Files
2024-07-05 21:36:15 +03:30

17 lines
433 B
C#

using Company.Domain.ZoneAgg;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace CompanyManagment.EFCore.Mapping;
public class ZoneMapping : IEntityTypeConfiguration<Zone>
{
public void Configure(EntityTypeBuilder<Zone> builder)
{
builder.ToTable("Zones");
builder.HasKey(x => x.id);
builder.Property(x => x.ZoneName).HasMaxLength(50);
}
}