using Microsoft.EntityFrameworkCore; namespace Quadarax.Application.QLiberace.Common.Entities.Base.DaoMapper { public abstract class TrackedTenantDm: TrackedDm where TEntity : QlbrcEntityTenantCode { public override void Map(ModelBuilder builder) { if (builder == null) throw new ArgumentNullException(nameof(builder)); base.Map(builder); builder.Entity(entity => { entity.Property(e => e.TenantCode).IsRequired() .HasMaxLength(20) .HasComment("Reference to tenant code that entity belongs"); } ); } } }