In RavenDB what does the below statement does?

using (var ds = new DocumentStore
Url = "http://localhost:8080",
DefaultDatabase = "CRUDDemo"

 Posted by Rajnilari2015 on 1/8/2016 | Category: NoSql Interview questions | Views: 1980 | Points: 40

As a first step, we are using the DocumentStore class that inherits from the abstract class DocumentStoreBase. The DocumentStore class is manages access to RavenDB and open sessions to work with RavenDB.The DocumentStore class needs a URL and optionally the name of the database. Our RavenDB server is running at 8080 port (at the time of installation we did so). Also we specified a DefaultDatabase name which is CRUDDemo here. The function Initialize() initializes the current instance.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response