Skip to content

Instantly share code, notes, and snippets.

@hgirish
Created December 17, 2019 07:10
Show Gist options
  • Save hgirish/e0d99b9b45080013becf27c1a7d9678d to your computer and use it in GitHub Desktop.
Save hgirish/e0d99b9b45080013becf27c1a7d9678d to your computer and use it in GitHub Desktop.
Gets the list of EF migrations from C# aspnet core project
Get-ChildItem -Path . -Filter *.cs | Where-Object { $_.Name -match "^\d{14}_.*\.cs" } | Where-Object Name -NotLike "*Designer*"| Select-Object -ExpandProperty Name | Set-Content -path D:\Downloads\migrations.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment