tags:

views:

308

answers:

1
    var result = from lr in _db.LeaveRequest  
                 join th in _db.TotalHourslu    
                 on lr.TotalHoursEffect 
                 equals th.Minutesselect 
                     new {lr.TotalHoursEffect, th.Minutes, tr.Display};

ERROR: in new

+1  A: 

You forgot your select; try this:

var result = from lr in _db.LeaveRequest  
             join th in _db.TotalHourslu    
               on lr.TotalHoursEffect equals th.Minutesselect 
             select new {lr.TotalHoursEffect, th.Minutes, tr.Display};
Blorgbeard
Blorgberd 10-q :)
Kombucha