How to run RavenDb in embedded mode?
Asked Answered
K

1

6

Ravendb documentation says to simply set the DataDirectory name before initializing the DocumentStore, but DocumentStore doesn't have a DataDirectory property :(

var documentStore = new DocumentStore  {  
      DataDirectory = "path/to/database/directory"  
};
documentStore.Initialize();

The code above doesn't compile :(


Ok, my bad...

I was using Raven.Client-3.5.dll, you have to use Raven.Client.dll

Kmeson answered 27/9, 2010 at 20:31 Comment(0)
T
7

Yeah - hosting RavenDB involves

  • Dynamic support
  • A whole suite of dependencies

This means that you can't run it in 3.5 and you can't run it using the Lightweight client :)

Transept answered 27/9, 2010 at 21:16 Comment(1)
I've actually written a quick entry on the subject if anybody reaches this point again: codeofrob.com/archive/2010/09/28/…Transept

© 2022 - 2024 — McMap. All rights reserved.