Cannot covert error
Keep getting cannot covert message,tried IEnumberable,List,Iqueryable... Tried adding .asQueryable() at the end nothing works
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1118756998629040129/ss.png)
4 Replies
What error di you get with .AsQueryable();
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1118762478977945630/ss2.png)
Have you got a using statement for System.Transactions in that file? The error's suggesting that that's the type of Transaction it thinks you want that method to return rather than an IQueryable of Budget_App.Models.Transaction, which I assume you don't?
Yes thank you that was the problem,visual studio put using statement System.Transactions instead of using Models.