I am trying to convert the SQL Query
Select Hours_Actual
From cwwebapp_infinitynetworks.dbo.Time_Entry
Where Company_RecID = 1247
To linq for VB. What I have is this:
Dim linqtest = (Aggregate Time_Entry In Cwwebapp_infinitynetworksDataSet.Time_Entry _
Where Time_Entry.Company_RecID = 1247 _
Into Sum(Time_Entry.Hours_Actual))
The SQL returns a result of 11.64 but lingtest returns 0D. I am at a loss to at what is wrong.