“Build failed” on Database First Scaffold-DbContext

后端 未结 18 1706
醉梦人生
醉梦人生 2020-12-24 04:31

I\'m trying to generate classes from a database (EntityFramework\'s database first approach).

For convenience, I\'m more or less walking along with this tutorial: ht

18条回答
  •  别那么骄傲
    2020-12-24 05:08

    Make sure your build works fine.
    Run the scaffold command from the package console, your command should work:

    Scaffold-DbContext 'Data Source=TEST-XY010;Initial Catalog=TESTDB;Trusted_Connection=True' Microsoft.EntityFrameworkCore.SqlServer -Context HOPWAContext -OutputDir TESTModel -Force
    

提交回复
热议问题