“Build failed” on Database First Scaffold-DbContext

后端 未结 18 1664
醉梦人生
醉梦人生 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:02

    For me, my project built in Visual Studio but I had to specify a version for "Microsoft.AspNetCore.App" when running Scaffold-DbContext.

    So instead of:

    
        netcoreapp2.1
        2.1.6
    
    
        
    
    

    I had to have:

    
        netcoreapp2.1
    
    
        
    
    

提交回复
热议问题