ASP.NET MVC + SubSonic + T4 = Sweet!

by Johan Driessen 3. April 2009 08:34

I’ve been fiddling around with ASP.NET MVC and SubSonic 3 for a while (as I mentioned in a previous post), and also been learning some cool stuff about T4 Templating. Now Rob Conery has created a very cool Visual Studio template bringing all this together (be sure to watch the video). And it even includes single sign on capabilities with e.g. Google and OpenID! And yeah, lots of ajax with jQuery.

I tried using this yesterday, and apart from his template being a little bit broken it really works! I created a data driven MVC web application with my own custom database in like 30 minutes. And without any magic, unmaintainable code that you can’t fiddle with. It’s just plain MVC, with SubSonic domain objects.

So I started over with the Dropit Labs site (which is actually only a static html page right now), using this. And after 2 more hours work I’m now only a little styling away from replacing the static version with a new state-of-the-art ASP.NET MVC version that will look almost exactly the same! I’m hoping to find the time to use my crazy css skills this weekend, and being able to release it next week.

Tags: , , , , ,

Development

Coming soon: Dropit Labs

by Johan Driessen 2. December 2008 21:01

Some of you might have noticed that although this blog is located at labs.dropit.se/blogs, there is nothing at labs.dropit.se itself. Well, that is about to change, hopefully we'll get it up well before Christmas. The idea is that labs.dropit.se will be a place where we, the people at Dropit, can show off some of the cool stuff we do, and make it available to others.

I'm currently in the process of developing the first version of the labs site itself. The idea is something like codeplex, only scaled down about 3000 times. I'm well aware that there are several solutions to this already available and open sourced, but I'm using this as an excuse to explore ASP.NET MVC a bit more, by developing an actual application with it. It's really, really nice, and I wish I would get the opportunity to use it in customer projects as well. In fact, I'm trying to figure out some way to combine it with EPiServer...

For database access, I was going to use SubSonic 3.0 (which is only on Preview 2 - but hey, ASP.NET MVC is only in beta - the bleeding edge is more fun!), but it turns out the current version has a nasty bug that makes it crash if you try to pass a variable to the repository. A hard coded integer is fine, but not a variable. Go figure. :-)

So instead I'm using Linq to SQL, which is also pretty nice, although unfortunately doomed in the long run. As soon as Subversion 3.0 starts working again (Preview 3, perhaps?), I think I'll replace Linq to SQL again.

And of course, when we do launch labs.dropit.se, the labs site itself will be the first project available on labs! We still havent really decided which license to use for the stuff, but we'll try to make as much as possible open sourced, that's kind of the whole point anyway.

I'm also told that I have to put my old register-drinks-with-barcode-and-then-show-fun-charts application (that some of you might remember from a party last year - and some of you might not remember...) up there as well. But in that case I think I'll have to rewrite it, I'm not sure I really want to make my old ASP/VBScript-code available to the whole world... :-)

Tags: , , ,

Development

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 2.5 Sweden License.


Welcome to the Dropit blog!

Here we, the people that work at Dropit, will write about stuff that interests us. For example web development, especially with .NET and EPiServer - but we'll also talk about other techniques that interest us, marketing on the web, social phenomenons, pop culture, games and software development in general.