Hi
Our configuration details are as follows;
LLBLGen Pro v3 Final
RTL version 3.0.10.1210
Adapter .NET 4
SQL 2005
We have a hierarchy as follows;
AnnualFinancial <- MonthlyFinancial <- User
Just to clarify, where User is a subtype of MonthlyFinancial, and MonthlyFinancial is a subtype of AnnualFinancial. I am attempting to create a Typed List (EmployeeKeyPerformanceIndicators) in the designer by adding the following entities;
I add a number of fields from each of the three entities. However, when I try to fetch the list as follows;
EmployeeKeyPerformanceIndicatorsTypedList toReturn = null;
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
EmployeeKeyPerformanceIndicatorsTypedList employeeKeyPerformanceIndicatorsTypedList = new EmployeeKeyPerformanceIndicatorsTypedList();
adapter.FetchTypedList(employeeKeyPerformanceIndicatorsTypedList);
I receive the following error on the last line above;
"Relation at index 2 doesn't contain an entity already added to the FROM clause. Bad alias?"
As soon as I remove the User table and fields from the Typed List and regen, I can fetch the list without error, but of course I am missing my user fields. I have tried aliasing the User entity when I add it in the designer, both as it's supertype and simply as a completely different name but this doesn't seem to make any difference. Neither does it seem to matter whether I'm trying to use fields that are physically on the User table or on the AnnualFinancial table. I have tried to examine the generated TSQL output in VS but it seems to fail before that is displayed.
I have tried searching for similar existing issues and the closest I could find was
http://www.llblgen.com/tinyforum/PrintMessages.aspx?ThreadID=12329
but that seems to indicate that it should be taken care of by now, so I am still a bit lost.
Is there a particular reason I shouldn't be adding a subtype or is there a different way to do it perhaps? Am I missing something?
Any suggestions would be greatly appreciated.
Thanks!