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};
错误:在新
中答案 0 :(得分:1)
你忘记了select
;试试这个:
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};