Created
December 17, 2019 07:10
-
-
Save hgirish/e0d99b9b45080013becf27c1a7d9678d to your computer and use it in GitHub Desktop.
Gets the list of EF migrations from C# aspnet core project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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