16 lines
386 B
C#
16 lines
386 B
C#
using Company.Domain.BankAgg;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace CompanyManagment.EFCore.Mapping
|
|
{
|
|
public class BankMapping : IEntityTypeConfiguration<Bank>
|
|
{
|
|
public void Configure(EntityTypeBuilder<Bank> builder)
|
|
{
|
|
builder.ToTable("Banks");
|
|
builder.Property(x => x.BankName).HasMaxLength(50);
|
|
}
|
|
}
|
|
}
|