typed list -> generated code has an error

Posts   
 
    
chrissie
User
Posts: 84
Joined: 05-Oct-2010
# Posted on: 06-Dec-2010 17:26:20   

hi all,

i use latest llblgen pro, ef 4, vs 20120, ms sql server 2008 r2, all on w7/64.

actually, i have only one typed list in my project. it is a very simple inner join of 5 db tables using just attribs of one of these tables.

here is the code generated:

var current1 = from smc_Unit in current0

join smc_HardwarePlatform in this.HardwarePlatforms on smc_Unit.RowId equals smc_HardwarePlatform.Unit.RowId

join smc_HardwarePlatformApplication in this.HardwarePlatformApplications on [[smc_HardwarePlatform.HardwarePlatform_.HardwarePlatform]] equals smc_HardwarePlatformApplication.HardwarePlatform_.RowId

join smc_Application in this.Applications on smc_HardwarePlatformApplication.Application_.RowId equals smc_Application.RowId

join smc_Release in this.Releases on smc_Application.RowId equals smc_Release.Application.RowId

select new {smc_HardwarePlatform, smc_Unit, smc_HardwarePlatformApplication, smc_Application, smc_Release };

return current1.Select(v=>new FaxUnitsTypedListRow() { Name = v.smc_Unit.Name, RowId = v.smc_Unit.RowId, SerialNumber = v.smc_Unit.SerialNumber, UserdefinedName = v.smc_Unit.UserdefinedName } );

i put the error in [[ and ]]. this must be replaced by smc_HardwarePlatform.RowId. actually i have to change this every time, i generate the code.

can you provide me with a tip on how to define a typed list properly?

thank you in advance

regards

chris

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 07-Dec-2010 04:33:31   

Please provide us more information. Are you talking a typed list like the typedList you create in the designer, or are you doing a Linq query?

David Elizondo | LLBLGen Support Team
chrissie
User
Posts: 84
Joined: 05-Oct-2010
# Posted on: 07-Dec-2010 09:26:42   

hi,

as i wrote, a attached the code generated by llblgen pro 3.0 when you define a typed list in the designer. and i do not understand, why this faulty code is generated and i have to put hands on every time.

thank you for answering fast,

regards

chris

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 07-Dec-2010 09:54:52   

Would you please attach a repro of the llblgen project.

chrissie
User
Posts: 84
Joined: 05-Oct-2010
# Posted on: 07-Dec-2010 13:06:49   

hi,

because i do not know what a repro of a llblgen project is, i attached the llblgen project file itself. this is the same i attached already in another thread. let me know what a repro is and how i can provide it to you.

thank you very much,

regards

chris

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 07-Dec-2010 17:13:12   
Frans Bouma | Lead developer LLBLGen Pro