我在把以下的LQ转换成能够提供帮助的LQ方面遇到很大困难?
SELECT dbo.ExpensesGroup.ExpenseGroupId, dbo.ExpensesGroup.Title, SUM(dbo.Expenses.Amount) AS TotalAmount, MAX(dbo.Expenses.DateLastTickled)
AS LastTickledDate, MAX(dbo.ExpensesGroup.DateTime) AS Date, Username
FROM dbo.Expenses INNER JOIN
dbo.ExpensesGroup ON dbo.Expenses.ExpenseId = dbo.ExpensesGroup.ExpensesId
WHERE dbo.Expenses.Status = AwaitingApproval or dbo.Expenses.Status = AwaitingApprovelGrouping
GROUP BY dbo.ExpensesGroup.ExpenseGroupId, dbo.ExpensesGroup.Title, dbo.Expenses.Username
ORDER BY MAX(dbo.ExpensesGroup.DateTime) DESC, dbo.ExpensesGroup.Title
或者哪怕是任何人都知道LQ转换器的自动SQl?