You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
请问这个迁移如何操作
cd ModernWMS
dotnet ef migrations add init
Build started...
Build succeeded.
Your target project 'ModernWMS' doesn't match your migrations assembly 'ModernWMS.Core'. Either change your target project or change your migrations assembly.
Change your migrations assembly by using DbContextOptionsBuilder. E.g. options.UseSqlServer(connection, b => b.MigrationsAssembly("ModernWMS")). By default, the migrations assembly is the assembly containing the DbContext.
Change your target project to the migrations project by using the Package Manager Console's Default project drop-down list, or by executing "dotnet ef" from the directory containing the migrations project.
cd .\ModernWMS.Core
Unable to create an object of type 'SqlDBContext'. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728
The text was updated successfully, but these errors were encountered:
请问这个迁移如何操作
cd ModernWMS
dotnet ef migrations add init
Build started...
Build succeeded.
Your target project 'ModernWMS' doesn't match your migrations assembly 'ModernWMS.Core'. Either change your target project or change your migrations assembly.
Change your migrations assembly by using DbContextOptionsBuilder. E.g. options.UseSqlServer(connection, b => b.MigrationsAssembly("ModernWMS")). By default, the migrations assembly is the assembly containing the DbContext.
Change your target project to the migrations project by using the Package Manager Console's Default project drop-down list, or by executing "dotnet ef" from the directory containing the migrations project.
cd .\ModernWMS.Core
Unable to create an object of type 'SqlDBContext'. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728
The text was updated successfully, but these errors were encountered: