Adding EF to ASP.NET Core 3 app

  • Thread starter Thread starter Mimosa Arts
  • Start date Start date
M

Mimosa Arts

Guest
I'm trying to write a CRUD API project which uses EF Core.. Found the article at

{{ service.title }}

When I get to the Scaffold -DbContext step - i run:

PM> Scaffold-DbContext "Data Source=MSQL01-DEV-FRA;Initial Catalog=ENT_SHIFT_HANDOVER;Integrated Security=True" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -Tables

And get the following error:


Scaffold-DbContext : Missing an argument for parameter 'Tables'. Specify a parameter of type
'System.String[]' and try again.
At line:1 char:167
+ ... ue" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -Tables
+ ~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Scaffold-DbContext], ParameterBindingException
+ FullyQualifiedErrorId : MissingArgument,Scaffold-DbContext

Any ideas how to get around this - i'm used to adding an EF project more by automated tool. Trying to add EF model from database on another server.

Continue reading...
 
Back
Top