Configuring a relationship with one navigation property

Posts   
 
    
Puromtec
User
Posts: 76
Joined: 22-Jun-2005
# Posted on: 25-Jul-2017 16:13:37   

Is there a way to generate code for EF where only one side of a relationship has a navigation property?

Here is the documentation on EF that covers this case using fluent code:

Section named "Configuring a Relationship with One Navigation Property" found here: https://msdn.microsoft.com/en-us/library/jj591620(v=vs.113).aspx

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 26-Jul-2017 09:26:10   

Select the navigator in project explorer, delete it (or leave it empty when you create a relationship manually in model first). simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Puromtec
User
Posts: 76
Joined: 22-Jun-2005
# Posted on: 26-Jul-2017 17:06:42   

Thanks for you help.