문제

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?

도움이 되었습니까?

해결책

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?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top