I have a Linq query to get all clients who have invoices which are overdue with more than 30 days.
When i run the query below it does not return any results and if i remove the a.Status it returns the results.
var clients = (from a in ClientTable
join b in Invoices on a.ClientId equals b.InvoiceId
where DbFunctions.DiffDays(TodayDate, b.InvoiceDueDate) > 30 && a.Status == "Active"
group a into c by a.id
select c).ToList();
Please help