Where to set nHibernate Fluent?

Posts   
 
    
adorfman
User
Posts: 10
Joined: 25-Jan-2010
# Posted on: 10-Jun-2010 15:28:01   

I'm using 3.0 and I only see the option for XML mappings in nHibernate. Is there somewhere I need to enable the Fluent option?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39903
Joined: 17-Aug-2003
# Posted on: 10-Jun-2010 16:42:33   

Fluent NHibernate is selected through a preset right before you generate code. The settings in project properties are for configuring the code generation process.

See: http://www.llblgen.com/documentation/3.0/NHibernate/hh_start.htm#PresetsAvailable.htm

Frans Bouma | Lead developer LLBLGen Pro
adorfman
User
Posts: 10
Joined: 25-Jan-2010
# Posted on: 10-Jun-2010 16:48:44   

I understand that but I don't have that option in the presets. I've tried re-installing. See the attached screenshot.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39903
Joined: 17-Aug-2003
# Posted on: 10-Jun-2010 18:07:54   

did you pick .net 2.0 ? Fluent NHibernate requires .net 3.5 or higher, as it's based on lambdas. So select .net 3.5 at the first tab.

Frans Bouma | Lead developer LLBLGen Pro
adorfman
User
Posts: 10
Joined: 25-Jan-2010
# Posted on: 10-Jun-2010 18:16:58   

Ah, OK. That worked. Stupid me.

Thanks!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39903
Joined: 17-Aug-2003
# Posted on: 10-Jun-2010 18:26:38   

adorfman wrote:

Ah, OK. That worked. Stupid me.

Thanks!

Just a heads up: we just released a fix for oracle/postgresql and fluentnhibernate, so if you're using fluentnh and oracle/postgresql, be sure to download todays build. simple_smile

Frans Bouma | Lead developer LLBLGen Pro