Created
June 30, 2014 08:35
-
-
Save ODataTeam/98d73aae6a1692ebfb90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IEdmModel model; | |
Func<Uri, XmlReader> getReferencedSchemaFunc = uri => | |
{ | |
return XmlReader.Create(GetModelStream(uri)); | |
}; | |
ODataMessageReaderSettings readerSettings = new ODataMessageReaderSettings() { BaseUri = new Uri(ServiceBaseUri) }; | |
using (var msgReader = new ODataMessageReader((IODataResponseMessage)message, readerSettings)) | |
{ | |
model = msgReader.ReadMetadataDocument(getReferencedSchemaFunc); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment