| 1234567891011121314151617181920 |
- using Microsoft.EntityFrameworkCore;
- using Quadarax.Foundation.Core.Data.Entity;
- namespace Quadarax.Application.QLiberace.Common.Entities.Base.DaoMapper
- {
- public class KeylessDm<TEntity> : AbstractDaoMapper where TEntity : QlbrcEntityKeyless
- {
- public override void Map(ModelBuilder builder)
- {
- if (builder == null) throw new ArgumentNullException(nameof(builder));
- builder.Entity<TEntity>(entity =>
- {
- entity.HasNoKey();
- }
- );
- }
- }
- }
|