SalesOrderHeader CustomerAddress AdventureWorks Linq Bug

Posts   
1  /  2  /  3  /  4
 
    
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39866
Joined: 17-Aug-2003
# Posted on: 15-Sep-2008 11:12:32   

Fixed. See attached build.

Frans Bouma | Lead developer LLBLGen Pro
TomDog
User
Posts: 623
Joined: 25-Oct-2005
# Posted on: 15-Sep-2008 14:00:47   

Yep that got it, I noticed there is no longer a derived tablesimple_smile so for the hell of it I changed the first line to var oc = MetaData.OcOccurrence.AsQueryable().Select(x=>x); which resulted in a derived table with an alias SQL error. Don't know if you care - I certainly don't.

Jeremy Thomas
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39866
Joined: 17-Aug-2003
# Posted on: 15-Sep-2008 15:35:16   

Hmm... I'll see if I can repro that one.

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39866
Joined: 17-Aug-2003
# Posted on: 15-Sep-2008 18:25:15   

Fixed. simple_smile It's not as edge case as you might expect. Fixed in next build. I think you'll run into it eventually, so it was fixed. it's not that strange, the code wasn't doing things that cleverly when determining an alias for a side of a join.

Frans Bouma | Lead developer LLBLGen Pro
1  /  2  /  3  /  4