17 lines
433 B
C#
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);
|
|
}
|
|
} |