From 5ac68c00def60dfd6a90f1adf402a38006daeb43 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Wed, 5 Feb 2020 09:41:16 +0300 Subject: [PATCH] IncludeDetails implementation in EfCoreIdentityRoleRepository.GetDefaultOnesAsync --- .../EntityFrameworkCore/EfCoreIdentityRoleRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityRoleRepository.cs b/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityRoleRepository.cs index 2abb9e7a2e..60fec622f2 100644 --- a/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityRoleRepository.cs +++ b/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityRoleRepository.cs @@ -45,7 +45,7 @@ namespace Volo.Abp.Identity.EntityFrameworkCore public virtual async Task> GetDefaultOnesAsync( bool includeDetails = false, CancellationToken cancellationToken = default) { - return await DbSet.Where(r => r.IsDefault).ToListAsync(GetCancellationToken(cancellationToken)); + return await DbSet.IncludeDetails(includeDetails).Where(r => r.IsDefault).ToListAsync(GetCancellationToken(cancellationToken)); } public override IQueryable WithDetails()