Jake Pearson
Jake Pearson

Reputation: 27717

Can't find RavenDB Dynamic Queries

I just started trying out RavenDB and it seems that the new/easy way to do queries is to use dynamic instead of canned. I downloaded build 191 but Query needs takes a parameter that is the index name. How do I enable dynamic queries? Am I missing a namespace? Do I need a version newer than 191?

Upvotes: 3

Views: 431

Answers (1)

metdos
metdos

Reputation: 13929

Right.

Build 191 is indeed the latest un-stable build, I just downloaded it to sanity check my answer before giving it - I don't know what binaries you're looking at though because I have indeed got

session.Query<Entity>()

Which is how you use dynamic queries (IE, not specifying an index name)

I've made sure that both the EmbeddedClient, the .NET 3.5 binaries and the standard lightweight client have this functionality.

My only answer is therefore that you must be looking at old versions of the binaries?

Upvotes: 2

Related Questions