Spark, FluentMigrator, and FluentNHiberate

the-people-of-sparks

image Spark looks like an excellent alternative view engine. It’s appeal is that the HTML dominates the view instead of <asp:controls>. Maybe its because I like rails, but it just feels more natural. Plus you still get the power & familiarity of .Net – in any form! It supports IronRuby & IronPython even!

So what happens when you take Spark, ASP.Net MVC, FluentMigrator, and FluentNHibernate.. will it blend? Sure, and here’s how.

  1. create and ASP.Net MVC web application.
  2. follow this guide to replace the default view engine
  3. use the same simplistic example migration and setup from my InstantApp
  4. Then just add a view and the code to list the users

 

You can grab the code from http://github.com/jcoffman/csinctools, where you’ll also find the code for InstantApp.

 

Controller method:

image

View:image Result:

image

By the way, the top image is from the book “The People of Sparks” which is the second in the City of Ember series.  The first is better; never read the third.

 
October 29, 2009 07:00 by josh
E-mail | Permalink
blog comments powered by Disqus

Comments



about josh

another programmer blogging about his misadventures in writing code.

Contact

contact us for website & software consulting

Decide

decide on pragmatic solutions

Develop

develop your product together

Succeed

achieve your goals with our services