Change the fetch mode of a Navigator field

Posts   
 
    
zweps79
User
Posts: 16
Joined: 28-Feb-2011
# Posted on: 17-May-2011 14:42:37   

Hello,

I'm using LLBLGen v3.1 final, built 23 feb, 2011.

My question:

The default setting for the fetch mode of a LLBLGen generated Navigator is 'select', see a fragment of generated mapping code for NHibernate below:

References(x=>x.EntityType) .Access.CamelCaseField(Prefix.Underscore) .Cascade.None() .Fetch.Select()

If I want this to set to Join(), where in LLBLGen can this be done, the help files didn't help me out unfortunately.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 17-May-2011 14:55:57   

in the entity editor, code gen info tab, select the navigator from the combo box, there you can set the fetch mode. This is on the individual navigator level. If you want to change it for all, go to the project properties -> code gen meta data defaults tab and change the setting there.

(23 feb is a rather old build btw)

Frans Bouma | Lead developer LLBLGen Pro