private OeAsyncEnumerator ExecutePost(IEdmModel refModel, ODataUri odataUri, OeRequestHeaders headers, CancellationToken cancellationToken, Stream requestStream) { _odataUri = odataUri; var parser = new OePostParser(refModel); OeAsyncEnumerator asyncEnumerator = parser.GetAsyncEnumerator(odataUri, requestStream, headers, _dataContext, out bool isScalar); if (!isScalar) { _queryContext = parser.CreateQueryContext(odataUri, headers.MetadataLevel); } return(asyncEnumerator); }
private OeAsyncEnumerator Execute(ODataUri odataUri, Stream requestStream, OeRequestHeaders headers, CancellationToken cancellationToken) { Object dataContext = _dataAdapter.CreateDataContext(); var parser = new OePostParser(_dataAdapter, _edmModel); OeAsyncEnumerator asyncEnumerator = parser.GetAsyncEnumerator(odataUri, requestStream, headers, dataContext, out Type returnClrType); if (returnClrType != null && !(returnClrType.IsPrimitive || returnClrType == typeof(String))) { _queryContext = parser.CreateQueryContext(odataUri, headers.MetadataLevel, returnClrType); } return(asyncEnumerator); }