- Überladene ReadAsync-Methoden in ProfileObjStateRepository implementiert, um Filterung nach Benutzer und Status zu ermöglichen. - Die Abfrageeffizienz durch Einbeziehung verwandter Entitäten und Anwendung bedingter Filter verbessert.
12 lines
705 B
C#
12 lines
705 B
C#
using DigitalData.Core.Abstractions.Infrastructure;
|
|
using WorkFlow.Domain.Entities;
|
|
|
|
namespace WorkFlow.Infrastructure.Contracts
|
|
{
|
|
public interface IProfileObjStateRepository : ICRUDRepository<ProfileObjState, int>
|
|
{
|
|
Task<IEnumerable<ProfileObjState>> ReadAsync(bool isReadonly = true, bool withProfile = true, bool withUser = true, bool withState = true, int? profileId = null, int? objId = null, bool? profileActive = null);
|
|
|
|
Task<ProfileObjState?> ReadAsync(bool isReadonly = true, bool withProfile = true, bool withUser = false, bool withState = true, int? usrId = null, string? username = null, int? profileId = null, int? objId = null, bool? profileActive = null);
|
|
}
|
|
} |