Updated namespaces for DTOs and services to improve project organization. Marked several interfaces as obsolete in favor of MediatR for better request handling. Simplified `BaseUpdateDto` and other DTOs by removing `IUnique<int>` implementation. Changed return types of `CreateAsync` methods to return corresponding read DTOs. Removed reference to `DigitalData.Core.DTO` in the project file, reflecting a shift in architecture for maintainability.
28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
using DigitalData.Core.Abstraction.Application.Repository;
|
|
using DigitalData.UserManager.Domain.Entities;
|
|
|
|
namespace DigitalData.UserManager.Application.Contracts.Repositories;
|
|
|
|
[Obsolete("Use IRepository")]
|
|
public interface IGroupOfUserRepository : ICRUDRepository<GroupOfUser, int>
|
|
{
|
|
IQueryable<GroupOfUser> ReadByGroupId(int groupId);
|
|
|
|
Task<IEnumerable<GroupOfUser>> ReadByGroupUserIdAsync(int groupId, int userId);
|
|
|
|
Task<IEnumerable<GroupOfUser>> ReadAllAsyncWithGroup();
|
|
|
|
Task<IEnumerable<GroupOfUser>> ReadAllAsyncWithUser();
|
|
|
|
Task<IEnumerable<GroupOfUser>> ReadAllAsyncWithGroupAndUser();
|
|
|
|
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);
|
|
} |