ra0o0f / arangoclient.net

ArangoDB .NET Client with LINQ support
Apache License 2.0
99 stars 37 forks source link

added a way to submit additional query parameters while executing a LINQ query as a cursor #100

Open samirski opened 6 years ago

samirski commented 6 years ago

Currently the query options can only submitted while executing a query as CreateStatement, like this:

db.CreateStatement<Person>("for p in Person limit 1,1 return p", null, true, null, null, new QueryOption {FullCount = true});

the change allows to execute a query as a LINQ statement: db.Query<Person>().Select(p => p.Age).Skip(1).Take(1).AsCursor(true, null, null, new QueryOption { FullCount = true });

samirski commented 6 years ago

this approach would allow to implement paging since the full count is available as part of the statistics properties

endeffects commented 5 years ago

@ra0o0f @jjchiw @jmcdaniel83 please merge and create new release package