How to create new set of migrations #860
-
I am trying to set a default schema for the tables in the model builder method. However, when I try to add migration I am getting an error. It's a clean project without any other changes. The error message I am getting is the following: Your target project 'XXX.IdentityService.Admin' doesn't match your migrations assembly 'XXX.IdentityService.Admin.EntityFramework.SqlServer'. Either change your target project or change your migrations assembly. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Got it :) You need to be in the working directory: and then run: |
Beta Was this translation helpful? Give feedback.
Got it :)
You need to be in the working directory:
E:\git\XXX.IdentityService\src\XXX.IdentityService.Admin
and then run:
dotnet ef migrations add DefaultSchema --context AdminAuditLogDbContext --project ..\XXX.IdentityService.Admin.EntityFramework.SqlServer\XXX.IdentityService.Admin.EntityFramework.SqlServer.csproj