using ApplicationHub.Data.EF.Authentication.Entities; using ApplicationHub.Data.EF.Utils; using ApplicationHub.Domain.Contracts.Authentication.Models; using AutoMapper; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Query; namespace ApplicationHub.Data.EF.Authentication.Repositories; public class UserRepository(AuthenticationDataContext authenticationDataContext, IMapper mapper) : BaseRepository(authenticationDataContext.Users, mapper) { protected override IIncludableQueryable? Inculdes() { return authenticationDataContext.Users .Include(x => x.Groups)! .ThenInclude(x => x.Rights); } }