refactor(ProfileControlsTFRepository): Überschriebene ReadOnly-Methode, um Profile und ProfileObjState Entitäten standardmäßig einzuschließen.

This commit is contained in:
Developer 02 2024-10-23 13:40:12 +02:00
parent 859f0631f0
commit 650b23def9

View File

@ -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<ProfileObjState, int, WFDBContext>(dbContext, dbContext.ProfileObjStates), IProfileObjStateRepository, ICRUDRepository<ProfileObjState, int>
{
protected override IQueryable<ProfileObjState> ReadOnly() => base.ReadOnly().Include(pos => pos.Profile).Include(pos => pos.State);
}
}