BrickPile.Core.DefaultBrickPileBootstrapper.CreateDefaultDocuments C# (CSharp) 메소드

CreateDefaultDocuments() 보호된 메소드

Setups the default documents.
protected CreateDefaultDocuments ( IDocumentStore documentStore ) : void
documentStore IDocumentStore The document store.
리턴 void
        protected void CreateDefaultDocuments(IDocumentStore documentStore)
        {
            using (IDocumentSession session = DocumentStore.OpenSession())
            {
                var trie = session.Load<Trie>(TrieId);

                if (trie != null) return;
                trie = new Trie {Id = TrieId};
                session.Store(trie);
                session.SaveChanges();
            }
        }