Currently there are two reasons why IResourceGraph is injected anywhere in the application:
- Retrieving
ContextEntity instances
- Resolving relationships
- abstracting away has-many-through stuff
- resolving inverse relationships.
These two deviating responsibilities can be put behind their own interface:
- IContextEntityProvider
- IRelationshipResolver
The latter could potentially be merged with the current IFieldExplorer service.
Currently there are two reasons why
IResourceGraphis injected anywhere in the application:ContextEntityinstancesThese two deviating responsibilities can be put behind their own interface:
The latter could potentially be merged with the current
IFieldExplorerservice.