O'Reilly logo

RavenDB 2.x Beginner's Guide by Khaled Tannir

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – creating the World ASP.NET MVC application

You will create a new Visual Studio solution using one of the default templates and then expand it to connect to RavenDB.

  1. Open Visual Studio, create a new ASP.NET MVC 4 Web Application project and name it World.
  2. Select the Basic template and keep the Razor view engine selected (the Razor engine is selected by default).
  3. Use the NuGet Package Manager to add the RavenDB Client package.

    Note

    Please ensure that you are using the same versions of the RavenDB server and the RavenDB client in order to avoid version incompatibilities.

  4. Open the Web.config file and add a new connection string for RavenDB.
  5. Add a new Folder to the World application and name it DAL.
  6. Add a new class to World.DAL and name it ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required