C
C#2y ago
TRBA

Cannot covert error

Keep getting cannot covert message,tried IEnumberable,List,Iqueryable... Tried adding .asQueryable() at the end nothing works
4 Replies
anita
anita2y ago
What error di you get with .AsQueryable();
TRBA
TRBAOP2y ago
SinFluxx
SinFluxx2y ago
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?
TRBA
TRBAOP2y ago
Yes thank you that was the problem,visual studio put using statement System.Transactions instead of using Models.
Want results from more Discord servers?
Add your server