Question about NHibernate generated code

Posts   
 
    
IvanVdB25
User
Posts: 3
Joined: 28-Aug-2011
# Posted on: 28-Aug-2011 17:28:48   

Hi,

I use LLBLGenPro to generate NHibernate ready code.

I have a problem with the following situation:

I have a master and detail table, the master table has a foreign key (bigint - nullable) as a reference to a record in the detail table.

By default, LLBLGenPro makes a navigator property for the detail table record in my master class. Instead I want the actual DetailID (bigint nullable) property in my master class instead of an instance of the detail record. Is this possible with LLBLGenPro?

Thanks and best record

Ivan

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 28-Aug-2011 18:07:47   

Sure. The navigator is just a consecuence of the involved relation. If you dont want it just go to the LLBLGen designer, find yor entity, expand the navigators node, find the navigator and delete it.

David Elizondo | LLBLGen Support Team
IvanVdB25
User
Posts: 3
Joined: 28-Aug-2011
# Posted on: 28-Aug-2011 18:18:55   

daelmo wrote:

Sure. The navigator is just a consecuence of the involved relation. If you dont want it just go to the LLBLGen designer, find yor entity, expand the navigators node, find the navigator and delete it.

I already deleted the navigator and regenerated the code. But the property id (foreign key) does not appear.

IvanVdB25
User
Posts: 3
Joined: 28-Aug-2011
# Posted on: 28-Aug-2011 23:44:39   

IvanVdB25 wrote:

daelmo wrote:

Sure. The navigator is just a consecuence of the involved relation. If you dont want it just go to the LLBLGen designer, find yor entity, expand the navigators node, find the navigator and delete it.

I already deleted the navigator and regenerated the code. But the property id (foreign key) does not appear.

In the meantime I found a solution. I have deleted the relation in the LLBLGenPro master entity and now the Id is available as a property.

Thanks for your help guys! Ivan sunglasses