How to switch UseCascadeDelete to TRUE

Posts   
 
    
chrissie
User
Posts: 84
Joined: 05-Oct-2010
# Posted on: 22-Mar-2011 14:45:58   

Hi all,

Usage: LLBLGen Pro 3.1, MS EF 4, VS 2010, Net Framework 4, SQL Server 2008 R2

might be i am totally blind, but after reading the online help:

"Navigaror settings

* UseCascadeDeletes. This setting controls whether the related entity / entities over this navigator should be automatically deleted when this entity is deleted (true) or should be left alone (false, default). Ignored for navigators mapped onto M:N relationships and navigators which are on the FK side of the relationship.
  Default value: false"

I search for the switch in the Designer where i can change the value to TRUE.

Thanx in advance, regards

chris

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 22-Mar-2011 21:21:58   

It's on the Code gen. info tab of the individual entity editor.

Right click on an entity. Edit. Code gen. info tab. Drop the "Element" drop down box to display a navigator. "Use Cascade Deletes" should appear as the only option.

Matt

chrissie
User
Posts: 84
Joined: 05-Oct-2010
# Posted on: 23-Mar-2011 12:30:21   

hi matt,

thank you for answering immediately. Now I found it.

regards

chris