예제 #1
0
        public override object Read(ODataMessageReader messageReader, ODataDeserializerContext readContext)
        {
            if (messageReader == null)
            {
                throw Error.ArgumentNull("messageReader");
            }

            if (readContext == null)
            {
                throw Error.ArgumentNull("readContext");
            }

            ODataReader reader = messageReader.CreateODataFeedReader(_edmEntityType.EntityDefinition());
            ODataFeed   feed   = ODataEntityDeserializer.ReadEntryOrFeed(reader, readContext) as ODataFeed;

            return(ReadInline(feed, readContext));
        }