Cannot covert error
Keep getting cannot covert message,tried IEnumberable,List,Iqueryable... Tried adding .asQueryable() at the end nothing works
4 Replies
What error di you get with .AsQueryable();
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.