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