Skip to content

Commit 1c335c6

Browse files
get correct entity name in response
1 parent 38b81b9 commit 1c335c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Services/QueryBuilderService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public Dictionary<string, object[]> RunQuery(Query query)
3434
?? throw new InvalidOperationException($"DbSet '{propInfo.Name}' does not support AsQueryable().");
3535

3636
var propRes = QueryExecutor.InvokeRunMethod([dbGenericType, dtoGenericType], [queryable, query, mapper]);
37-
return new Dictionary<string, object[]> { { propInfo.Name.ToLowerInvariant(), propRes } };
37+
return new Dictionary<string, object[]> { { query.Entity, propRes } };
3838
}
3939
}
4040
}

0 commit comments

Comments
 (0)