How do I translate this SQL function to linq query lambda expression?

```
SELECT Type, DATEDIFF(day,Expiry_Date,GETDATE()) AS Days
FROM Item
GROUP BY Type, Expiry_Date;

```

Do I first need to create a function in my database?