Trying to set-up Entity Framework core in .Net Standard project

前端 未结 7 1525
耶瑟儿~
耶瑟儿~ 2020-12-14 00:39

I was wondering if I could set-up my EntityFrameworkCore in a .NET Standard 2.0 project easily. I was following this Tutorial but it requires either .NET Core or Framework.<

7条回答
  •  囚心锁ツ
    2020-12-14 01:10

    I'm actually trying to do this also. I got the scaffolding but Net Standard doesn't seem to load the extensions for table properties.

    Make sure you install the EntityFrameworkCore.Tools package for EF. You only need 4.6.1 support which is the default. If I figure out how to fix the extensions issue I'll post here.

    These two are required:
    Install-Package Microsoft.EntityFrameworkCore.SqlServer
    Install-Package Microsoft.EntityFrameworkCore.Tools

提交回复
热议问题