All my current Fluent NHibernate Conventions

by Mikael Henriksson 5. July 2010 23:17
I have been working on these for a while now. It all started  when I had to adapt to DBA style naming conventions. I wanted to automate everything because 16 tables with almost the same number of columns becomes a lot of text to write . Yeah I have to override a column name every now and then b... [More]

Tags: ,

Fluent NHibernate | NHibernate

Replace that ClassMap<T> with something useful!

by Mikael Henriksson 14. September 2009 02:12
While waiting for my NServiceBus article to finish I have yet another quick post on the Fluent NHibernate and particularly the mapping. I see people do mapping conventions and mapping overrides and struggling with getting the results they want. Part of me want to laugh in their faces for being silly... [More]

Tags: ,

Fluent NHibernate

Fluent Inheritance and Table-Per-Class – version 1.0.1

by Mikael Henriksson 13. August 2009 22:02
In this post I showed an old way of doing this. The new way would look like this: public class PersonMap : ClassMap<Person> { public PersonMap() { Table("person"); Id(x => x.Id, "person_id"); Map(x => x.FirstName, "person_first_name"); Map(x => x.LastNa... [More]

Tags:

Fluent NHibernate

Adventures in NHibernate – Part 1 (Configuration)

by Mikael Henriksson 25. July 2009 15:09
To start with I’d like to state (and people might shoot me for this) that NHibernate has as many issues as any other framework I’ve laid my hands on. As I said before it has it’s pro’s and con’s.  In the following examples I will be using FluentNhibernate for the s... [More]

Tags:

Fluent NHibernate

Table-Per-Class inheritance with Fluent NHibernate

by Mikael Henriksson 23. July 2009 08:59
First of all I am an Entity Framework dude. Don’t worry I’m not going to convert BUT my boss and friend has a history of being an expert DBA and those guys have their own take own naming columns and at a recent project we were working on I realized it was going to be way to much work customizing the... [More]

Tags:

Fluent NHibernate

About the author

Life architect specialized in programming