sqllocaldb, VisualStudio, Project, dotnet tool, install
WIN-C3FC7KU40FE\SQLEXPRESS
(localdb)\mssqllocaldb;Database=DbTrade3;Trusted_Connection=True;
(localdb)\mssqllocaldb
**********************************************************************
** Visual Studio 2026 Developer PowerShell v18.0.2
** Copyright (c) 2025 Microsoft Corporation
**********************************************************************
PS F:\Projects\VS\TradingApi> dotnet ef migrations add InitialCreate -p TradingDAL
Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET program, but dotnet-ef does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
PS F:\Projects\VS\TradingApi> dotnet tool install --global dotnet-ef
You can invoke the tool using the following command: dotnet-ef
Tool 'dotnet-ef' (version '10.0.1') was successfully installed.
PS F:\Projects\VS\TradingApi> dotnet ef migrations add InitialCreate -p TradingDAL
Build started...
Build succeeded.
Done. To undo this action, use 'ef migrations remove'
PS F:\Projects\VS\TradingApi> dotnet ef database update -p TradingDAL
Build started...
Build succeeded.
Acquiring an exclusive lock for migration application. See https://aka.ms/efcore-docs-migrations-lock for more information if this takes too long.
Applying migration '20251215041501_InitialCreate'.
Done.
PS F:\Projects\VS\TradingApi>
Комментариев нет:
Отправить комментарий