I have created a new ASP.NET Core 6 Web API project and am using an existing MYSQL database. I successfully set up the model and context from the database without any issues.
But when I try to build the controller, either using Add-> Controller-> API -> API Controller and Action, using Entity Framework (in Solution Explorer) or in Package Management Using the dotnet-aspnet-codegenerator controller command in the controller console I receive the following error:
I googled for solutions but can't seem to find any.
I'm new to C#/Visual Studio/.NET/EntityFramework (I'm used to using Node.js), so any help/advice is greatly appreciated.
1 answers
I have encountered the same problem before, because the low version of EF Core was caused by some cs syntax, helped me install the Microsoft.CodeAnalysis.CSharp.Workspaces package. Maybe your problem is the same, I hope this helps.
Hot tools Tags
Hot Questions
Popular tool
vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation
VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library
PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment
VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library
SublimeText3 Chinese version
Chinese version, very easy to use
Hot Topics
20522
7
13634
4






