feat: ReadAsync-Methode zum GroupOfUserRepository für flexible Abfragen hinzufügen

This commit is contained in:
Developer 02
2024-10-29 16:58:40 +01:00
parent 25995e8d48
commit e80ec2cf8d
4 changed files with 37 additions and 4 deletions

View File

@@ -18,5 +18,11 @@ namespace DigitalData.UserManager.Infrastructure.Contracts
Task<IEnumerable<GroupOfUser>> ReadByUsernameAsync(string username);
Task<IEnumerable<GroupOfUser>> ReadByUserIdAsync(int userId);
// merge all GroupOfUserRepository-methods conditionally under this method
Task<IEnumerable<GroupOfUser>> ReadAsync(
bool readOnly = true,
bool withGroup = true, bool withUser = true,
int? id = null, int? groupId = null, int? userId = null, string? username = null);
}
}