Contents tagged with RavenDB
I did a presentation titled “NoSQL databases in .NET Apps” at Microsoft Community Tech Day, Kochi organized by Kerala Microsoft User Group. The session was an introductory talk on NoSQL databases and demonstrated how to use NoSQL databases in .NET applications. I have given a demo on NoSQL approach using RavenDB and ASP.NET MVC. The slide for the demo available at http://www.slideshare.net/shijucv/nosql-database-in-net-apps and the source code is available from http://ravenmvc.codeplex.com
By default RavenDB's Id would be sperated by "/". Let's say that we have a category object, the Ids would be like "categories/1". This will make problems when working with ASP.NET MVC's route rule. For a route category/edit/id, the uri would be category/edit/categories/1. You can solve this problem in two ways
Solution 1 - Change Id Separator
We can use different Id Separator for RavenDB Ids in order to working with ASP.NET MVC route rules. The following code specify that Ids would be seperated by "-" rather than the default "/"
In my previous post, we have discussed on how to work with RavenDB document database in an ASP.NET MVC application. We have setup RavenDB for our ASP.NET MVC application and did basic CRUD operations against a simple domain entity. In this post, let’s discuss on domain entity with deep object graph and how to query against RavenDB documents using Indexes. You can download the source code from http://ravenmvc.codeplex.com
Source Code - http://ravenmvc.codeplex.com