Skip to content

Commit 9ca83b7

Browse files
Ticket #276 : Include SchemaAttribute
1 parent 4b20e59 commit 9ca83b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Scim/SimpleIdServer.Scim.Persistence.EF/EFSCIMRepresentationQueryRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public Task<SCIMRepresentation> FindSCIMRepresentationById(string representation
4747
public Task<SCIMRepresentation> FindSCIMRepresentationById(string representationId, string resourceType)
4848
{
4949
return _scimDbContext.SCIMRepresentationLst
50-
.Include(r => r.FlatAttributes)
50+
.Include(r => r.FlatAttributes).ThenInclude(s => s.SchemaAttribute)
5151
.Include(r => r.Schemas).ThenInclude(s => s.Attributes)
5252
.FirstOrDefaultAsync(r => r.Id == representationId && r.ResourceType == resourceType);
5353
}

src/Scim/dotnet6/SimpleIdServer.Scim.Persistence.EFNet6/EFSCIMRepresentationQueryRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public Task<SCIMRepresentation> FindSCIMRepresentationById(string representation
2929
public Task<SCIMRepresentation> FindSCIMRepresentationById(string representationId, string resourceType)
3030
{
3131
return _scimDbContext.SCIMRepresentationLst
32-
.Include(r => r.FlatAttributes)
32+
.Include(r => r.FlatAttributes).ThenInclude(s => s.SchemaAttribute)
3333
.Include(r => r.Schemas).ThenInclude(s => s.Attributes)
3434
.FirstOrDefaultAsync(r => r.Id == representationId && r.ResourceType == resourceType);
3535
}

0 commit comments

Comments
 (0)