Geeks With Blogs
A Curious Mind #tastic

Just a quick post about FluentNHibernate. Its such a simple project that is really going to take NHibernate to a new level. The basics are there, and although the AutoMap stuff has just been committed I have already found a feature that has made it a must have: fluent configuration.

var properties = PostgreSQLConfiguration
                     .PostgreSQL82
                     .ConnectionString.Is("User ID=postgres;Password=xxx;Host=localhost;Port=5432;Database=test;")
                     .ToProperties();
           
var cfg = new Configuration()
              .AddProperties(properties);

Awesome!

Posted on Sunday, August 17, 2008 10:27 PM | Back to top


Comments on this post: The Simple Features

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Dru Sellers | Powered by: GeeksWithBlogs.net