This is continued on from http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=19398
I've emailed a reproduction to support At llblgen.com.
Note that in dataaccessadapter.designer.cs, lines 89-90 was something weird I tried. I forgot to remove it afterwards before sending the repro, it doesn't affect the result either way.
So basically what my code tries to do is add a join onto a permissions table for certain entities (currently just 1 entity).
In a simple scenario where i'm writing linq to the effect of: select * from contentpageentity it works fine, the join is added, i get my contentpageentity with my added Permission column and everyone is happy.
In a somewhat more complicated scenario I add a join from ContentPage to ContentPageType plus add filter on ContentPageType.Name column. So this gets created by the linq provider as a DynamicRelation. My code then tries to add another relation joining ContentPage onto ContextPermissions and it fails. It does not generate a query.
{"Relation at index 1 doesn't contain an entity already added to the FROM clause. Bad alias?"}
So my goal is to resolve that bug.