I want to work with the DocumentDatabase object. For this I am writing the follwing code but it is not working. It is giving NullReferenceException "Object reference not set to an instance of an object." Please tell me the right way to do this. code is :
Raven.Database.Config.InMemoryRavenConfiguration configure1 =
new Raven.Database.Config.InMemoryRavenConfiguration
{
DatabaseName = databaseName,
Port=8080 ,
DataDirectory="~/Data"
};
DocumentDatabase database1 = new DocumentDatabase(configure1);
//database1.GetDocuments(0,3,null);