コード例 #1
0
        public void InitRaven(params AbstractIndexCreationTask[] indexes)
        {
            if (Store != null)
            {
                Store.Dispose();
            }

            EmbeddableDocumentStore store = new EmbeddableDocumentStore {
                RunInMemory = true
            };

            store.Configuration.Storage.Voron.AllowOn32Bits = true;

            Store = store.ApplyGeoConventions().Initialize();
            foreach (var index in indexes)
            {
                Store.ExecuteIndex(index);
            }
        }