17 lines
671 B
C#

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 GroupRepository(AuthenticationDataContext authenticationDataContext, IMapper mapper) : BaseRepository<Group, GroupEntity>(authenticationDataContext.Groups, mapper)
{
protected override IIncludableQueryable<GroupEntity, object?>? Inculdes()
{
return authenticationDataContext.Groups
.Include(x => x.Rights);
}
}