diff options
Diffstat (limited to 'src/System.Web.Http.OData/OData/Formatter/ODataMediaTypeFormatter.cs')
-rw-r--r-- | src/System.Web.Http.OData/OData/Formatter/ODataMediaTypeFormatter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Web.Http.OData/OData/Formatter/ODataMediaTypeFormatter.cs b/src/System.Web.Http.OData/OData/Formatter/ODataMediaTypeFormatter.cs index 83747e58..e85c50fb 100644 --- a/src/System.Web.Http.OData/OData/Formatter/ODataMediaTypeFormatter.cs +++ b/src/System.Web.Http.OData/OData/Formatter/ODataMediaTypeFormatter.cs @@ -210,7 +210,7 @@ namespace System.Web.Http.OData.Formatter { IODataRequestMessage oDataRequestMessage = new ODataMessageWrapper(readStream, contentHeaders); oDataMessageReader = new ODataMessageReader(oDataRequestMessage, oDataReaderSettings, ODataDeserializerProvider.EdmModel); - ODataDeserializerContext readContext = new ODataDeserializerContext { IsPatchMode = isPatchMode, PatchKeyMode = PatchKeyMode }; + ODataDeserializerContext readContext = new ODataDeserializerContext { IsPatchMode = isPatchMode, PatchKeyMode = PatchKeyMode, Request = Request, Model = Model }; result = deserializer.Read(oDataMessageReader, readContext); } catch (Exception e) |