17 lines
469 B
C#
17 lines
469 B
C#
using Domains.LocationDomain;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace Infrastructure.Database.Locations.Configuration
|
|
{
|
|
public class CountryConfiguration : IEntityTypeConfiguration<Country>
|
|
{
|
|
public void Configure(EntityTypeBuilder<Country> entity)
|
|
{
|
|
entity.Property(p => p.Name)
|
|
.IsUnicode(false)
|
|
.HasMaxLength(70);
|
|
}
|
|
}
|
|
}
|