From 650b23def9bafd7641fa07f1933f8ff5ec319c8f Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 23 Oct 2024 13:40:12 +0200 Subject: [PATCH] =?UTF-8?q?refactor(ProfileControlsTFRepository):=20=C3=9C?= =?UTF-8?q?berschriebene=20`ReadOnly`-Methode,=20um=20`Profile`=20und=20`P?= =?UTF-8?q?rofileObjState`=20Entit=C3=A4ten=20standardm=C3=A4=C3=9Fig=20ei?= =?UTF-8?q?nzuschlie=C3=9Fen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/ProfileObjStateRepository.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WorkFlow.Infrastructure/Repositories/ProfileObjStateRepository.cs b/WorkFlow.Infrastructure/Repositories/ProfileObjStateRepository.cs index 639ddf3..849a75a 100644 --- a/WorkFlow.Infrastructure/Repositories/ProfileObjStateRepository.cs +++ b/WorkFlow.Infrastructure/Repositories/ProfileObjStateRepository.cs @@ -1,5 +1,6 @@ using DigitalData.Core.Abstractions.Infrastructure; using DigitalData.Core.Infrastructure; +using Microsoft.EntityFrameworkCore; using WorkFlow.Domain.Entities; using WorkFlow.Infrastructure.Contracts; @@ -7,5 +8,8 @@ namespace WorkFlow.Infrastructure.Repositories { public class ProfileObjStateRepository(WFDBContext dbContext) : CRUDRepository(dbContext, dbContext.ProfileObjStates), IProfileObjStateRepository, ICRUDRepository { + protected override IQueryable ReadOnly() => base.ReadOnly().Include(pos => pos.Profile).Include(pos => pos.State); + + } } \ No newline at end of file