InterviewSolution
| 1. |
In Ravendb What Does The Below Statement Does? Using (var Ds = New Documentstore { Url = "http://localhost:8080", Defaultdatabase = "cruddemo" }.initialize()) |
|
Answer» As a first step, we are using the Document Store class that inherits from the abstract class Document Store Base. The Document Store class is manages access to Raven DB and open sessions to work with Raven DB. The Document Store class needs a URL and optionally the NAME of the database. Our Raven DB SERVER is running at 8080 port (at the time of INSTALLATION we did so). Also we specified a Default Database name which is CRUD Demo here. The function Initialize() initializes the CURRENT instance. As a first step, we are using the Document Store class that inherits from the abstract class Document Store Base. The Document Store class is manages access to Raven DB and open sessions to work with Raven DB. The Document Store class needs a URL and optionally the name of the database. Our Raven DB server is running at 8080 port (at the time of installation we did so). Also we specified a Default Database name which is CRUD Demo here. The function Initialize() initializes the current instance. |
|