Guest User

Untitled

a guest
Nov 20th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. set mypath=%cd%
  2. PowerShell -Command "& {Start-Process PowerShell -ArgumentList '-File ""%mypath%ResetMigration.ps1""' }"
  3.  
  4. ResetMigration.ps1
  5. Get-ChildItem -Path Get-Location -Include * -File -Recurse | foreach { $_.Delete()}
  6. dotnet ef database drop
  7. dotnet ef migrations add Initial
  8. dotnet ef database update
Add Comment
Please, Sign In to add comment