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

Leniel Maccaferri
  • 100,159
  • 46
  • 371
  • 480
andrecarlucci
  • 5,927
  • 7
  • 52
  • 58

1 Answers1

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 :)

metdos
  • 13,411
  • 17
  • 77
  • 120
  • 3
    I've actually written a quick entry on the subject if anybody reaches this point again: http://codeofrob.com/archive/2010/09/28/ravendb-image-gallery-project-ii-setting-up.aspx – metdos Oct 01 '10 at 23:41