C
C#13mo ago
TRBA

Cannot covert error

Keep getting cannot covert message,tried IEnumberable,List,Iqueryable... Tried adding .asQueryable() at the end nothing works
4 Replies
chef drone builder
What error di you get with .AsQueryable();
TRBA
TRBA13mo ago
SinFluxx
SinFluxx13mo 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
TRBA13mo 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
More Posts
✅ Calling toast library function in scaffolded cshtml.csHi, Can someome please point on to how to use `shared/mycomponent` function in a scaffolded cshtml -How to I write an equation to raise a variable to another variable using a for loop?I can't use Math.Pow() here, it has to be a loop. If there's an easier loop to use here, I would def❔ My asp.net endpoint throws a error when it receives stringMy endpoint takes a integer and 2 strings from the frontend. The frontend is sending a integer and 2❔ Anyone knows any qr code reader that uploads the qr image then output it as a json/stringTill beginner with c#✅ Authorize() Attribute is not working (SOLVED)Hello everyone, I implemented Jwt in .net 6 for a project. I have shared my JwtHelper and program cl✅ Implementing IDisposable properlyI have a class I implemented IDisposable in which subscribes to an observable of a type. Example: su❔ Help with Assemblies and the TypeRef tableI am trying to load a .NET DLL as an assembly and read the TypeRef table. End goal is to get all the❔ Python Decorators in C# ??? How do i intercept method calls with attributes?Is is possible to intercept/prevent a method call in c# with attributes? i was thinking about someth❔ AspNetCore web MVC app - AuthenticationI would like to implement some authentication to my web app. I would like to make it "proper" and no❔ .net 7 docker container error: qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2' HELPI am getting this error (qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or