Create() 공개 메소드

public Create ( ) : IDocumentStore
리턴 IDocumentStore
        public void build_in_memory()
        {
            var settings = new RavenDbSettings
            {
                RunInMemory = true
            };

            settings.Create().ShouldBeOfType<EmbeddableDocumentStore>()
                .RunInMemory.ShouldBeTrue();
        }
예제 #2
0
        public IDocumentStore Build()
        {
            var documentStore = _settings.Create();

            documentStore.Initialize();

            _configurations.Each(x => x.Configure(documentStore));

            return(documentStore);
        }
예제 #3
0
        public void Start()
        {
            NonAdminHttp.EnsureCanListenToWhenInNonAdminContext(8080);

            RavenDbSettings settings = RavenDbSettings.InMemory();

            settings.UseEmbeddedHttpServer = true;

            _store = settings.Create();
            _store.Initialize();
        }