Jeremy D. Miller -- The Shade Tree Developer

Sponsors

The Lounge

Syndication

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Say Hello to Fluent NHibernate

I'll let James Gregory do the introduction for Fluent NHibernate here.  I think this project has a lot of potential to dramatically reduce the difficulties teams face when working with NHibernate.  The initial focus is on a fluent interface mechanism for NHibernate configuration, but I'm hopeful that it grows into the easiest way to use NHibernate

In a nutshell, what if...

  • You could configure NHibernate with Intellisense and zero, I said zero, Xml?
  • You had some easy tooling for testing out NHibernate mappings?
  • You could make significant shortcuts in your persistence mapping by setting sensible project conventions once and only once?
  • You could start with a reference architecture for a Repository?
  • You had sample "recipes" for bootstrapping NHibernate with the common IoC tools?

 

The guys doing Fluent NHibernate are going gangbusters getting this thing ready to go.  Nice job guys.

 


Posted Fri, Aug 8 2008 2:30 PM by Jeremy D. Miller

[Advertisement]

Comments

Mike D wrote re: Say Hello to Fluent NHibernate
on Fri, Aug 8 2008 3:39 PM

Jeremy,

Thanks for your work on this, you are dead on.

I would like to see support for more ORMs like LinqToSql.

Colin Jack wrote re: Say Hello to Fluent NHibernate
on Fri, Aug 8 2008 4:50 PM

Good stuff, I'm also very interested in your object-object mapping testing capabilities.

I've thought about doing it myself but couldn't work out how to do it for more complex cases, so definitely interested to see what you guys have produced.

Brian Johnston wrote re: Say Hello to Fluent NHibernate
on Fri, Aug 8 2008 7:17 PM

As I told James...finally and NHibernate I can get on board with.  For years I've been screaming that XML configuration file != better application - for our team, on the application that we inherited, it result in more production runtime bugs then any other application I had ever worked on (until we got rid of 80% of configuration files and 100% of all the extra interfaces that were created solely for the 'abstraction' of the configuration files).

Anyway, I think this is a great evolutionary step for NHibernate and I'm really looking forward to see this project completed.  My experiences with NHibernate thus far have been nothing but frustration after frustration.

Ray Vega wrote re: Say Hello to Fluent NHibernate
on Sun, Aug 10 2008 12:54 AM

That is definitely a nice and better way to configure NHibernate instead of the xml files.

On a previous project using NHibernate the xml mapping files were also troublesome, problematic, and even confusing to a lot of the developers on the team. Since we also did not have automated tests on them we usually did not know about any issues with the files until we ran the application.

"XML Hell" is one of the main reasons why I no longer use NAnt for my build files and instead use an actual dynamic scripting language (Python) to handle those tasks.

Fluent NHibernate « Hendry Luk — Sheep in Fence wrote Fluent NHibernate « Hendry Luk — Sheep in Fence
on Sun, Aug 10 2008 6:41 AM

Pingback from  Fluent NHibernate « Hendry Luk — Sheep in Fence

Dew Drop - August 10, 2008 | Alvin Ashcraft's Morning Dew wrote Dew Drop - August 10, 2008 | Alvin Ashcraft's Morning Dew
on Sun, Aug 10 2008 11:32 AM

Pingback from  Dew Drop - August 10, 2008 | Alvin Ashcraft's Morning Dew

Brian Johnston wrote re: Say Hello to Fluent NHibernate
on Sun, Aug 10 2008 7:15 PM

'XML Hell'   I love that!   Managers will get that too since they're all too familiar with being burnt by DLL hell a decade ago.   I'm using it!

Jeremy D. Miller wrote re: Say Hello to Fluent NHibernate
on Sun, Aug 10 2008 7:57 PM

@Brian,

Yeah, but be one of the cool kids and say "XmHell"

Colin Jack wrote re: Say Hello to Fluent NHibernate
on Mon, Aug 11 2008 4:13 AM

@Ray

Just to say if the project you describe is still around then you can easily verify many aspects of the mapping using this approach:

codebetter.com/.../test-your-nhibernate-mappings.aspx

Ayende has blogged about this sort of thing too.888

Ross Neilson wrote re: Say Hello to Fluent NHibernate
on Tue, Aug 12 2008 3:56 AM

I concur with all of the benefits outlined above.

However a plus point for the XML config was that, should your column names change, you could update the mappings and everything would keep working, without the need for a recompile. Assuming you were loading the mappings at runtime rather than compiling them into the assembly of course.

Developers using the fluent interface are closing off this flexibility.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?