Given the following relations/tables...
Table1.PKey 1:n Table2.FK
Table3.FK 1:1 Table1.Pkey
In the database, there is not a defined relation between Table2.FK and Table3.FK, but there is an implied one. If you wanted the information from Table2 and Table3 you could get that without going through table1.
select *
from Table2
join Table3 on Table2.FK=Table3.FK
However, in LLBLGen to achieve this, I am having to provide the relations in such a way the following is the result query:
select *
from Table2
join Table1 on Table2.FK=Table1.Pkey
join Table3 on Table3.FK=Table1.Pkey
Anyway I can get around having to involve Table1 in this operation? (just trying to optimize the queries generate). I tried setting up a relation, but it only lets me relate to Primary Keys - so cannot setup Table2 -> Table3 relationship.