llblgen 4.2 entityrelationship names problem

Posts   
 
    
PAZIMLI
User
Posts: 82
Joined: 01-May-2008
# Posted on: 26-Apr-2016 14:08:41   

Relationnames differ from previous so that all of my .net codes using this code gives an error.

Thank you

rpb1.Relations.Add(FiFoyOdemePlaniEntity.Relations.FiBankaHesapEntityUsingFromBankaKoduFromOrgFirmaFromSubeKoduFromMusteriNoFromBankaHesapNo, "BankaRel2", JoinHint.Left); -- old

rpb1.Relations.Add(FiFoyOdemePlaniEntity.Relations.FiBankaHesapEntityUsingFromBankaHesapNoFromBankaKoduFromMusteriNoFromOrgFirmaFromSubeKodu, "BankaRel2", JoinHint.Left); -- new

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 26-Apr-2016 14:12:23   

This is a breaking change unfortunately, as the naming in old versions (< 3) could lead to duplicates. If you're not migration from a very old version, it might be the order of the pk fields are different. In your previous post I pointed you to the way to make sure the order of the PK fields is in an order you want.

Frans Bouma | Lead developer LLBLGen Pro
PAZIMLI
User
Posts: 82
Joined: 01-May-2008
# Posted on: 26-Apr-2016 14:35:35   

We created a new LLBLGEN 4.2. Project, refresh and add entities (not migrate)

we are sure that tables field orders are true. But foreignkeynames are different. Is there any way to change foreignkeynames as OLD ?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 26-Apr-2016 15:03:15   

what does 'old' mean in you case?

Frans Bouma | Lead developer LLBLGen Pro
PAZIMLI
User
Posts: 82
Joined: 01-May-2008
# Posted on: 26-Apr-2016 15:06:03   

rpb1.Relations.Add(FiFoyOdemePlaniEntity.Relations.FiBankaHesapEntityUsingFromBankaKoduFromOrgFirmaFromSubeKoduFromMusteriNoFromBankaHesapNo, "BankaRel2", JoinHint.Left); -- old

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 26-Apr-2016 15:08:29   

PAZIMLI wrote:

rpb1.Relations.Add(FiFoyOdemePlaniEntity.Relations.FiBankaHesapEntityUsingFromBankaKoduFromOrgFirmaFromSubeKoduFromMusteriNoFromBankaHesapNo, "BankaRel2", JoinHint.Left); -- old

Heh yeah I got that from your first post simple_smile But what does 'old' mean, i.e. was it generated with an old version, and if so, which one, etc.

Frans Bouma | Lead developer LLBLGen Pro
PAZIMLI
User
Posts: 82
Joined: 01-May-2008
# Posted on: 26-Apr-2016 15:16:11   

Sorry, Old version 2.5

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 26-Apr-2016 19:04:59   

This looks like the known breaking change stated before. Unfortunately, you will need to modify your code to use the new naming.