background preloader

RavenDB

Facebook Twitter

Using RavenDB and ASP.NET MVC 4 to create a Twitter Clone Chirpy. In my previous articles, I have introduced RavenDB, the document database.

Using RavenDB and ASP.NET MVC 4 to create a Twitter Clone Chirpy

We have performed basic CRUD operations and seen how data can be persisted to RavenDB. Today we will go one step ahead and see how we can Index data in RavenDB. As a pre-requisite, it is a good idea to go through the introductory posts first. Introducing ‘Chirpy - the Twitter Clone' Before we dive into RavenDB indexes, let’s set the context for ourselves. Update: Check out ChirpyHQ in the next part of this article RavenHQ and ASP.NET MVC – Moving your Data to the Cloud using AppHarbor As of now, we have a very basic functionality that involves sending out a ‘chirp’ message and adding hashtags to keywords.

Create Responsive Design Mobile Sites & Apps using Sitefinity - Free Trial For future enhancement we want to be able to Reply to a chirp and represent ‘chirp’ replies hierarchically. The complete source code is available here. The ‘Chirp’ Document Structure Value: The text of the chirp as is. The Name Under the Hood. Building an ASP.NET MVC app using RavenDB as a Backing Store. In a previous article, I had demonstrated how we could introduce RavenDB as an auto-save cache for information that resides in a traditional RDBMS.

Building an ASP.NET MVC app using RavenDB as a Backing Store

Today we are going to look at how we can use it as the only backing store of an ASP.NET MVC application. Note: If you are new to NoSql or RavenDB or Document Databases, make sure you read Hello RavenDB! Introducing RavenDB for .NET Developers Using RavenDB as a backing store is actually very easy. In a development environment, all you have to do is install using Nuget package manager and start the Raven.Server.exe from the packages folder. Create Responsive Design Mobile Sites & Apps using Sitefinity - Free Trial In this article, we will see how to build an ASP.NET MVC app using RavenDB Embedded and then publish it to a hosted source. Again for simplicity purposes we will take our tried and tested Blog example. 1: Start with a usual ASP.NET MVC, Internet project template.

Using RavenDB in Brown-Field ASP.NET MVC projects. In this article, we will look at a NoSql database called RavenDB, and explore a use case that is typical of brown-field projects (projects involving enhancements to an existing application), where a handy functionality in an ASP.NET MVC application can be achieved by using RavenDB.

Using RavenDB in Brown-Field ASP.NET MVC projects

Let’s take the scenario where you have a nice Purchase Order management system built on ASP.NET MVC. It allows user to create a Purchase Order that has some header data and multiple line items. So the Purchase order with it’s multiple line items is typically saved in RBDMS through a Master-Detail relationship. But from an Object graph point of view, PO is a single document containing a header and multiple line items. Now let’s say users come back saying – “I have to create POs with 100 line items and sometime I forget to hit save before I go for coffee.

Telling the user to Save often is probably the most common response. In this article, we will use a simpler example for brevity. Current Layering of Code C:\... Hello RavenDB! Introducing RavenDB for ASP.NET Developers. In this article, we will look at a NoSQL database called RavenDB.

Hello RavenDB! Introducing RavenDB for ASP.NET Developers

If you are new to NoSQL or RavenDB or Document Databases, don’t panic! We’ll walk you through an introduction for each. What is NoSQL and what are NoSQL Databases? Before we get into the classical definition, let’s look back at our approach towards building n-layer ASP.NET applications. Typically we have the RDBMS system with its schema at the bottom, immediately followed by an O-R Mapping layer that maps the tables into Entities. This mandatory mapping from Tables to Entities often involves a non-trivial amount of work to shoehorn object relationships into table structures. NoSQL databases (specifically the Object Database or Document Database breed), aim to release us from this ‘impedance-mismatch’ of entities that we use for business logic and tables that we use for data storage, by saving Business Entities directly to a persistence store.

NoSQL as is somewhat obvious, stands for ‘Not only SQL’.