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
Hello, I was able to start the project, but I can't start the migration, it destroys all the data and without them the project won't start, what should I do @echo off
SET DATA_PROJECT_PATH=ModernWMS.Core\ModernWMS.Core.csproj
SET STARTUP_PROJECT_PATH=ModernWMS\ModernWMS.csproj
SET CONTEXT_NAME=ModernWMS.Core.DBContext.SqlDBContext
:: Удаление базы данных
dotnet ef database drop --force --context %CONTEXT_NAME% --project %DATA_PROJECT_PATH% --startup-project %STARTUP_PROJECT_PATH%
:: Удаление последней миграции
dotnet ef migrations remove --context %CONTEXT_NAME% --project %DATA_PROJECT_PATH% --startup-project %STARTUP_PROJECT_PATH%
:: Создание новой миграции
dotnet ef migrations add InitialCreate --context %CONTEXT_NAME% --project %DATA_PROJECT_PATH% --startup-project %STARTUP_PROJECT_PATH%
:: Обновление базы данных
dotnet ef database update --context %CONTEXT_NAME% --project %DATA_PROJECT_PATH% --startup-project %STARTUP_PROJECT_PATH%
pause
does not work without migration, some fields are missing_(
The text was updated successfully, but these errors were encountered:
Hello, I was able to start the project, but I can't start the migration, it destroys all the data and without them the project won't start, what should I do
@echo off
SET DATA_PROJECT_PATH=ModernWMS.Core\ModernWMS.Core.csproj
SET STARTUP_PROJECT_PATH=ModernWMS\ModernWMS.csproj
SET CONTEXT_NAME=ModernWMS.Core.DBContext.SqlDBContext
:: Удаление базы данных
dotnet ef database drop --force --context %CONTEXT_NAME% --project %DATA_PROJECT_PATH% --startup-project %STARTUP_PROJECT_PATH%
:: Удаление последней миграции
dotnet ef migrations remove --context %CONTEXT_NAME% --project %DATA_PROJECT_PATH% --startup-project %STARTUP_PROJECT_PATH%
:: Создание новой миграции
dotnet ef migrations add InitialCreate --context %CONTEXT_NAME% --project %DATA_PROJECT_PATH% --startup-project %STARTUP_PROJECT_PATH%
:: Обновление базы данных
dotnet ef database update --context %CONTEXT_NAME% --project %DATA_PROJECT_PATH% --startup-project %STARTUP_PROJECT_PATH%
pause
does not work without migration, some fields are missing_(
The text was updated successfully, but these errors were encountered: