Cant scaffold API-контроллер в приложении бритвенных страниц - PullRequest
0 голосов
/ 06 мая 2019

Я пытаюсь создать API-контроллер с помощью Entity Framework, и во время процесса возникает какая-то ошибка. Есть идеи, что не так?

Вывод на консоль показывает следующую информацию:

Running the generator 'controller'...
Attempting to figure out the EntityFramework metadata for the model and DbContext: 'Product'
info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
      Entity Framework Core 3.0.0-preview4.19216.3 initialized 'ProductsDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: MaxPoolSize=128 
Method not found: 'System.Type Microsoft.EntityFrameworkCore.Metadata.IProperty.get_ClrType()'.
   at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.<BuildCommandLine>b__6_0()
   at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
   at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args)
   at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)

Есть идеи, что может быть не так?

...