Using RavenDB with ASP.NET MVC 4

Some people might have wondered why I used ASP.NET MVC 3 in my previous blog post. The reason is that the RavenDB.Client package uses Newtonsoft.Json and ASP.NET MVC 4 also has a dependency on Newtonsoft.Json. In itself this isn’t a problem except that RavenDB requires Newtonsoft.Json version 4.0.8 and ASP.NET MVC 4 ships with a much newer version of Newtonsoft.Json, to be exact version 4.5.6. The result is that trying to Install-Package RavenDB.Client produces the following error: Install-Package : Updating ‘Newtonsoft.Json 4.5.6’ to ‘Newtonsoft.Json 4.0.8’ failed. Unable to find a version of ‘Microsoft.AspNet. WebApi.Client’ that is compatible with ‘Newtonsoft.Json 4.0.8’. … Continue reading Using RavenDB with ASP.NET MVC 4

Getting started with RavenDB in an ASP.NET MVC application

RavenDB is one of the newer document type databases that is conceptually comparable to MongoDB or CouchDB. One of the nice thing about RavenDB, at least for a .NET developer, is that is has been developed with .NET in mind from the start. And this makes it really easy to get started with. In fact it is so easy to get started with that it surprises me that not everyone is using it.   One of the things that attract me to document databases like RavenDB is the fact that they are really fast and schema free. This means that … Continue reading Getting started with RavenDB in an ASP.NET MVC application

DotNed Podcast: Gert Drapers over SQL Server developer tooling

In deze podcast spreekt Hassan Fadili Gert Drapers over zijn carrière bij Microsoft en zijn sessies data georiënteerde sessies tijdens de laatste TechDays. Gert vertelt onder meer hoe hij bij Microsoft begonnen is en hoe hij de eerste SQL server tools voor developers, ook wel Data-Dude genoemd ontwikkelt heeft. Links: Blog: http://blogs.msdn.com/b/gertd/ SQL Server Data Tools: http://msdn.microsoft.com/en-us/data/hh297027 Get Started with Microsoft SQL Server Data Tools: http://msdn.microsoft.com/en-us/data/hh297028 TechDays sessies:  http://www.techdays.nl/SprekerDetail.aspx?cid=2234 http://www.dotned.nl/PodCasts.aspx?id=26   Enjoy!   [f1] [f2]

Entity Framework 4.1 power tools

The EF team at Microsoft just release a first CTP of the EF 4.1 Power Tools making it even easier to do Code First development with an existing database. Guess it isn’t really code first in that case but database first   I did a quick test with an existing database, Northwind to be exact, and it worked pretty well. The only gotcha is you have to make sure the EF4.1 assemblies are available in your project otherwise you will receive the exception below. Adding Ef4.1 is easy though, just download the installer and install them or even better, just … Continue reading Entity Framework 4.1 power tools

Windows Workflow Foundation futures and database access

Ron Jacobs showed a number of really cool new workflow features we can be expecting in the next version of Windows Workflow Foundation during the last PDC in Redmond and Tech-Ed Europe in Berlin. One of the new features he demonstrated where the activities we can use to load data from a SQL server database into our workflow. Most of the new features are really cool but the database activities are not.   Why don’t I like the new database activities With the new ExecuteSqlQuery<T> we are back to typing in a literal SQL string to be executed on the … Continue reading Windows Workflow Foundation futures and database access

Trying the WF ADO.NET Activity Pack CTP 1

Recently the workflow team at Microsoft released a first CTP to the ADO.NET Activity Pack. In this blog post I am going to take a quick look at how to get started with these activities.   First step is installing the activity pack. Download the setup MSI from http://wf.codeplex.com/releases/view/43585 and run the installer. This will install the activities in the folder C:\Program Files (x86)\Microsoft WF ADO.NET Activity Pack\CTP 1 and register them with VS2010 so they automatically appear in the toolbox. Note that the main assembly containing the activities is called Microsoft.Data.Activities.dll. If we start VS2010 and create a new … Continue reading Trying the WF ADO.NET Activity Pack CTP 1

Nederlandse CodeCamp 2009

Op 21 november 2009 organiseren de SDN, Stichting dotNed en VBcentral samen het derde Nederlandse Code Camp. Dit is een dag lang met code, code sharing, freaking en gezellig samenzijn. Een evenement door ontwikkelaars, voor ontwikkelaars. De regie ligt voor een belangrijk deel bij de deelnemers! Het aantal plaatsen voor deelnemers is wel beperkt tot maximaal 150. Wacht dus niet te lang met beslissen want voor je het weet is er geen plaats meer. Vergeet bij je aanmelding niet op te geven welke onderwerpen je interesse hebben. Bovendien nodigen we iedereen graag uit om zelf een sessie in te vullen. … Continue reading Nederlandse CodeCamp 2009

Combined DevelopMentor instructors blog feed.

Michael Kennedy, one of the co instructors from DevelopMentor, has created a combined feed from all the blogs of the various DevelopMentor. An awesome group of people with a lot of knowledge to share. Highly recommended in you RSS reader. http://feeds.feedburner.com/DevelopmentorInstructors   If you want to check out a list of the individual blog feeds look here.   Enjoy!   [f1] [f2]

Paging with the Silverlight RIA services DomainDataSource

Using the declarative DomainDataSource that is part of the upcoming Silverlight 3 RIA services makes it quite easy to work with data. All you need to do is add a DomainDataSource control to the the XAML, point it to the generated DomainContext class (in this case NorthwindContext) and tell it which method to use to load the data from the web service(in this case LoadCustomers). Next add a DataGrid to display the data and you are good to go. <UserControl xmlns:dataControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm" x:Class="LOBUsingRIAServices.CustomerListPage" xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Ria.Controls" xmlns:web="clr-namespace:LOBUsingRIAServices.Web" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid x:Name="LayoutRoot" Background="White"> <riaControls:DomainDataSource x:Name="CustomerDataSource" LoadMethodName="LoadCustomers"> <riaControls:DomainDataSource.DomainContext> <web:NorthwindContext /> </riaControls:DomainDataSource.DomainContext> </riaControls:DomainDataSource> <data:DataGrid ItemsSource="{Binding … Continue reading Paging with the Silverlight RIA services DomainDataSource

Consuming an ADO.NET Data Service from Silverlight

When developing Silverlight line of business (LOB) applications we often need to get at some data from a database. There are various ways to do so. One option that is easy to get started with with is creating an ADO.NET Entity Data Model (EDM) and exposing that entity model using an ADO.NET Data Service.   Getting started The first thing we need to create is an ASP.NET Web Application. This is basically going to act as a container for our Data Service and our Silverlight LOB application. As you can see below I named the Web Application SLDataService. Next we … Continue reading Consuming an ADO.NET Data Service from Silverlight