feat(EnvelopeReceiverReadOnly): Controller initialisieren

- Join mit Receiver und Read
 - DI-Konfiguration hinzufügen
 - Auslöser hinzufügen (TBSIG_ENVELOPE_RECEIVER_READ_ONLY_UPD)
This commit is contained in:
Developer 02
2024-10-01 11:17:30 +02:00
parent 0e91df7acc
commit e17f7df930
8 changed files with 97 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
using DigitalData.Core.Infrastructure;
using EnvelopeGenerator.Domain.Entities;
using EnvelopeGenerator.Infrastructure.Contracts;
using Microsoft.EntityFrameworkCore;
namespace EnvelopeGenerator.Infrastructure.Repositories
{
@@ -9,5 +10,12 @@ namespace EnvelopeGenerator.Infrastructure.Repositories
public EnvelopeReceiverReadOnlyRepository(EGDbContext dbContext) : base(dbContext, dbContext.EnvelopeReceiverReadOnlys)
{
}
protected override IQueryable<EnvelopeReceiverReadOnly> ReadOnly()
{
return base.ReadOnly()
.Include(erro => erro.Envelope)
.Include(erro => erro.Receiver);
}
}
}