LLBL 4.2, Pro runtime Framework
Hi, I found following problem.
I have table PARTY
and inherited table PERSON
Then I have table PARTYROLE
and inherited table WORKER
PARTY to PARTYROLE is 1:N
In LLBL designer I cannot see relationship from PersonEntity to WorkerEntity
I can see just relationship to PartyRoleEntity.
The background
When I want to load all Persons that are Workers, I would do in MSSQL someting like:
Select * From Person JOIN Party ...JOIN PartyRole ...JOIN Worker...
In code I would do:
filter.Relations.Add(EntityClasses.PersonEntity.Relations.WorkerEntityUsingPartyId)
adapter.FetchEntityCollection(ecPersons, filter)
but this way is not possible
I can do just:
filter.Relations.Add(EntityClasses.PersonEntity.Relations.PartyRoleEntityUsingPartyId)
but I cannot continue by
filter.Relations.Add(EntityClasses.PartyRoleEntity.Relations.WorkerEntityUsingPartyRoleId)
See DB BAK and LLBL project attached
Attachments
Filename |
File size |
Added on |
Approval |
sample.zip
|
124,003 |
17-Oct-2015 23:41.24 |
Approved |