My code is:
using (var session = documentStore.OpenSession(databaseName))
{
var list = session.Query<dynamic>("Raven/DocumentsByEntityName").ToArray();
foreach (var item in list)
{
Console.WriteLine(item);
}
}
But it does not give me the name of the document. I want to list all of the documents in single database.
Try something like this, it’s a bit more generic and it allows access to the raw documents
}