7

In an asp.net 5 beta 7 project no matter how the command is written I get an unrecognized argument trying to scaffold the dbcontext from an existing db:

C:\Dev\Project>dnx ef dbcontext scaffold provider EntityFramework.SqlServer connection 
    "Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=ubercrew_relation;Integrated Security=True"

I've tried all possible combinations of the two arguments connection and provider

Do you know the right syntax for executing the scaffold command?

Dave Zych
  • 21,581
  • 7
  • 51
  • 66
Alek
  • 141
  • 1
  • 8

1 Answers1

10

The right command is:

C:\Dev\Project>dnx ef dbcontext scaffold "Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=ubercrew_relation;Integrated Security=True" EntityFramework.SqlServer

Be sure to have installed the EntityFramework.SqlServer.Design package via nuGet

Dave Zych
  • 21,581
  • 7
  • 51
  • 66
alfberga
  • 116
  • 1
  • 2