ā I'm trying to scaffold a apicontroller but get error all the time.
I NEED HELP!!
8 Replies
this is my infrastructure:
this are the packages i installed:
i'm working in ASP.NET core 6 btw
i already made a ProductsController manually. And everyhting is working. But when i try scaffolindg it gives me all the time that error
and i don't know what information i can give more because i'm stuck for this for a long time
That's a di error. You haven't registered the context/ context options properly
in my program.cs?
Yes. Or Startup depending on how you're doing it
i mean i don't know what is wrong. This is my program.cs:
i add the context and Unitofwork
OMFG
i had to create an empty constructor in my ShoppingContext
š š š