I am able to insert and delete data in a RavenDB store. I am also able to run queries that return multiple documents.
I am however unable to load data using session.Load<Book>("books/0") which returns null. Additionally, I get an InvalidOperationException when I try and run a query that searches for a book with a given ID but this particular behavior is expected.
Is there anything I am missing when fetching the doc?
Code Block:
using (var session = DocumentStoreHolder.Store.OpenSession())
{
for (int i = 0; i < count; i++)
{
var doc = session.Load<Book>(i);
Console.WriteLine(doc);
}
}