Skip to content

Commit dac651b

Browse files
committed
We're going to need access to the IModelManager from EnableFilteringAttribute and elsewhere!
1 parent 547de42 commit dac651b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

JSONAPI/Json/JsonApiFormatter.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,25 @@ public JsonApiFormatter(IPluralizationService pluralizationService) : this()
4343
_modelManager = new ModelManager(pluralizationService);
4444
}
4545

46+
[Obsolete]
4647
public IPluralizationService PluralizationService //FIXME: Deprecated, will be removed shortly
4748
{
4849
get
4950
{
5051
return _modelManager.PluralizationService;
5152
}
5253
}
54+
5355
private readonly IErrorSerializer _errorSerializer;
56+
5457
private readonly IModelManager _modelManager;
58+
public IModelManager ModelManager
59+
{
60+
get
61+
{
62+
return _modelManager;
63+
}
64+
}
5565

5666
private Lazy<Dictionary<Stream, RelationAggregator>> _relationAggregators
5767
= new Lazy<Dictionary<Stream, RelationAggregator>>(

0 commit comments

Comments
 (0)