Add migration with different assembly

后端 未结 14 1225
感情败类
感情败类 2020-12-02 14:25

I am working on a project with ASP.NET CORE 1.0.0 and I am using EntityFrameworkCore. I have separate assemblies and my project structure looks like this:

Pr         


        
14条回答
  •  Happy的楠姐
    2020-12-02 14:36

    The below command did the trick for me. I'm using VS Code and I run the following command:

    SocialApp.Models> dotnet ef migrations add InitialMigartion --startup-project ../SocialApp.API
    

    Courtesy: https://github.com/bricelam/Sample-SplitMigrations

提交回复
热议问题