File tree 2 files changed +5
-0
lines changed
src/JsonApiDotNetCore/Services 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 3
3
using JsonApiDotNetCore . Configuration ;
4
4
using JsonApiDotNetCore . Internal ;
5
5
using JsonApiDotNetCore . Internal . Query ;
6
+ using JsonApiDotNetCore . Models ;
6
7
7
8
namespace JsonApiDotNetCore . Services
8
9
{
@@ -20,5 +21,6 @@ public interface IJsonApiContext
20
21
PageManager PageManager { get ; set ; }
21
22
IMetaBuilder MetaBuilder { get ; set ; }
22
23
IGenericProcessorFactory GenericProcessorFactory { get ; set ; }
24
+ Dictionary < RelationshipAttribute , object > RelationshipsToUpdate { get ; set ; }
23
25
}
24
26
}
Original file line number Diff line number Diff line change 4
4
using JsonApiDotNetCore . Configuration ;
5
5
using JsonApiDotNetCore . Internal ;
6
6
using JsonApiDotNetCore . Internal . Query ;
7
+ using JsonApiDotNetCore . Models ;
7
8
using Microsoft . AspNetCore . Http ;
8
9
9
10
namespace JsonApiDotNetCore . Services
@@ -23,6 +24,7 @@ public JsonApiContext(
23
24
Options = options ;
24
25
MetaBuilder = metaBuilder ;
25
26
GenericProcessorFactory = genericProcessorFactory ;
27
+ RelationshipsToUpdate = new Dictionary < RelationshipAttribute , object > ( ) ;
26
28
}
27
29
28
30
public JsonApiOptions Options { get ; set ; }
@@ -36,6 +38,7 @@ public JsonApiContext(
36
38
public PageManager PageManager { get ; set ; }
37
39
public IMetaBuilder MetaBuilder { get ; set ; }
38
40
public IGenericProcessorFactory GenericProcessorFactory { get ; set ; }
41
+ public Dictionary < RelationshipAttribute , object > RelationshipsToUpdate { get ; set ; }
39
42
40
43
public IJsonApiContext ApplyContext < T > ( )
41
44
{
You can’t perform that action at this time.
0 commit comments