Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Designer> Designer Removing Custom relations upon model refresh
 

Pages: 1
Designer
Designer Removing Custom relations upon model refresh
Page:1/1 

  Print all messages in this thread  
Poster Message
JRR
User



Location:
Western Canada
Joined on:
07-Dec-2005 23:33:05
Posted:
125 posts
# Posted on: 30-Mar-2011 21:08:18.  
I have custom relations declared in the llblgen designer, but I don't want to propagate those constraints into the database.

I don't think this happened in 2.6, but now when I refresh the model from the database, the designer removes any relation that does not have an underlying db constraint.

Can this be disabled? I would like to preserve my relationships while doing a model refresh.

Version is 3.1 Final - February 28th, 2011
  Top
JRR
User



Location:
Western Canada
Joined on:
07-Dec-2005 23:33:05
Posted:
125 posts
# Posted on: 30-Mar-2011 22:11:49.  
Maybe we could have a checkbox option to de-select model changes...

  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
34650 posts
# Posted on: 30-Mar-2011 23:20:42.  
I think you'll have to give a better example. model only relationships (introduced in 3.1) are preserved across refreshes. You mean model-only relationships? If so, could you give us a repro case?
Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
JRR
User



Location:
Western Canada
Joined on:
07-Dec-2005 23:33:05
Posted:
125 posts
# Posted on: 30-Mar-2011 23:26:21.  
What is a model-only relationship, and how does it differ from a standard relationship?

My DB does not have any relationships - I can't change it to enforce integrity.
In LLBLGen, I want to declare navigation properties.

If I understand correctly, by specifying a relationship in the designer as Model Only, a db model refresh will not clear them out, correct?


  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
13698 posts
# Posted on: 31-Mar-2011 09:19:46.  
Correct, you would build the relations in the model, since they are not enforced in the database and won't be there. So you will end up with navigators, prefetchPaths, relation objects...etc.
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
34650 posts
# Posted on: 31-Mar-2011 09:39:21.  
Indeed. To add: this is a 3.1 feature, you have to check the checkbox for 'model only' on the dialog when creating the relationship, or specify 'mo' after the relationship in quickmodel.

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.