Problem With Inherited Entity - Losing name in designer

Posts   
 
    
mshe
User
Posts: 167
Joined: 02-Feb-2006
# 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!

mshe
User
Posts: 167
Joined: 02-Feb-2006
# 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?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 18-Jun-2008 10:37:05   
mshe
User
Posts: 167
Joined: 02-Feb-2006
# 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 smile

arschr
User
Posts: 893
Joined: 14-Dec-2003
# Posted on: 18-Jun-2008 17:14:07   

I thought I saw a thread that said this was "fixed" in v2.6

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# 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 | Lead developer LLBLGen Pro