Skip to content

Commit 8408e02

Browse files
committed
feat(json-api-context): add total records prop
1 parent 605e039 commit 8408e02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/JsonApiDotNetCore/Services/JsonApiContext.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ public JsonApiContext(
2020
_httpContextAccessor = httpContextAccessor;
2121
Options = options;
2222
}
23+
2324
public JsonApiOptions Options { get; set; }
2425
public IContextGraph ContextGraph { get; set; }
2526
public ContextEntity RequestEntity { get; set; }
2627
public string BasePath { get; set; }
2728
public QuerySet QuerySet { get; set; }
2829
public bool IsRelationshipData { get; set; }
2930
public List<string> IncludedRelationships { get; set; }
31+
public int TotalRecords { get; set; }
3032

3133
public IJsonApiContext ApplyContext<T>()
3234
{

0 commit comments

Comments
 (0)