Skip to content

Instantly share code, notes, and snippets.

@SimonDoy
Created May 25, 2016 05:12
Show Gist options
  • Save SimonDoy/c566d0558f86764c03d764b8f977401a to your computer and use it in GitHub Desktop.
Save SimonDoy/c566d0558f86764c03d764b8f977401a to your computer and use it in GitHub Desktop.
private IOrderedQueryable<InvoiceForm> GetAllQuery()
{
var feedOptions = new FeedOptions { MaxItemCount = -1 };
var documentCollectionUri = new Uri(_dataContext.DocumentCollection.DocumentCollection.AltLink, UriKind.RelativeOrAbsolute);
var query = _dataContext.Database.Client.CreateDocumentQuery<InvoiceForm>(documentCollectionUri, feedOptions);
return query;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment