Created
May 26, 2009 01:40
-
-
Save whatupdave/117844 to your computer and use it in GitHub Desktop.
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
var migrations = from m in typeof (WebConfigMigrator).GetMethods() | |
where m.Name.StartsWith("Migration_") | |
let migrationNumber = int.Parse(Regex.Match(m.Name, @"Migration_(\d+)").Groups[1].Value) | |
where migrationNumber > currentVersion | |
orderby migrationNumber | |
select m; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment