I want to get all documents of any type by the following query:
var customers = documentSession.Query<Customer>()
but in this case I get only 1 result (although there are 78 of them). If I add a filter condition that is always true, I get all 78 documents:
var customers = documentSession.Query<Customer>().Where(c => c.Id != null).ToList();
I assume this is a mistake.
Update. RavenDb Build 531
Update 2
Daniel and Orin, sorry for the delay.
I prepared a sample application. You can download it here: http://www.2shared.com/file/AGIAR5UA/RavenDbSampleAppication.html
There is a NUnit test project that references SkazhiKazinoNet.Data.Model.dll, where the model is defined. I just added a package with the latest RavenDb and imported data from dump4.raven (you can find it in / Raven / tools packages) from Raven.Smuggler.