Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Bugs & Issues> Problem With Inherited Entity - Losing name in designer
 

Pages: 1
Bugs & Issues
Problem With Inherited Entity - Losing name in designer
Page:1/1 

  Print all messages in this thread  
Poster Message
mshe
User



Location:
Markham, Canada
Joined on:
02-Feb-2006 23:31:34
Posted:
167 posts
# Posted on: 18-Jun-2008 01:24:52.  
Hi all,

I've mapped an inherited entity as follows (Using TargetPerHierachy):


Schedule
DailySchedule


Code generates file.

However, when I refresh my database, DailySchedule loses it name and becomes Schedule_

Any idea why? Do you need to be attach my project file?

Thanks!
  Top
mshe
User



Location:
Markham, Canada
Joined on:
02-Feb-2006 23:31:34
Posted:
167 posts
# Posted on: 18-Jun-2008 06:41:13.  
I think the issue is caused by SyncMappedElementNamesAfterRefresh = True.

But it doesn't quite make sense why SyncMappedElementNamesAfterRefresh should rename inherited entities?


  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14531 posts
# Posted on: 18-Jun-2008 10:37:05.  
Same issue was discussed here:
http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=8982
  Top
mshe
User



Location:
Markham, Canada
Joined on:
02-Feb-2006 23:31:34
Posted:
167 posts
# Posted on: 18-Jun-2008 17:08:24.  
Walaa wrote:
Same issue was discussed here:
http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=8982


Wow, how do you guys find these articles?

Was the decision to keep the behaviour as is?

Seems a bit odd to reset inherited entities which are manually assigned a name Laugh


  Top
arschr
User



Location:
Atlanta, Georgia; USA
Joined on:
14-Dec-2003 16:57:29
Posted:
879 posts
# Posted on: 18-Jun-2008 17:14:07.  
I thought I saw a thread that said this was "fixed" in v2.6
- Al  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37645 posts
# Posted on: 18-Jun-2008 18:23:06.  
It was fixed for FIELD names (fields and fields mapped on relations).

For multiple entities mapped onto the same table (which can be with inheritance through TargetPerEntityHierarchy or simply by mapping multiple entities onto the same table), it's a bit of a problem:

The feature says: Sync. However we should skip renamed entities according to this issue. However, that would make the feature moot: why sync if some elements will be skipped?

I agree that when using targetperentityhierarchy inheritance, the sync won't be useful, but what can it do? Skip these entities? What should it do with the root entity of the hierarchy? Leave it as-is or skip it too? This isn't always clear. So we didn't fix it for entity names: people who run into this problem, have to disable the setting.

Refresh produces a detailed report of what has been changed. This should be examined after every refresh.


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.