Permalink
Browse files

Adds FxCop fix missed from last commit

  • Loading branch information...
1 parent 4457c65 commit 41b3ef57c13a13f29122e87a517481a3edbcd8b9 @anpete anpete committed Jul 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/EntityFramework/Utilities/StringExtensions.cs
@@ -5,6 +5,7 @@
using System.Data.Entity.Resources;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
+ using System.Globalization;
using System.Text.RegularExpressions;
[SuppressMessage("Microsoft.Contracts", "CC1036",
@@ -71,7 +72,7 @@ public static string ToAutomaticMigrationId(this string migrationId)
{
Contract.Requires(!string.IsNullOrWhiteSpace(migrationId));
- var timeStampInt = Convert.ToInt64(migrationId.Substring(0, 15)) - 1;
+ var timeStampInt = Convert.ToInt64(migrationId.Substring(0, 15), CultureInfo.InvariantCulture) - 1;
return timeStampInt + migrationId.Substring(15) + "_" + Strings.AutomaticMigration;
}

0 comments on commit 41b3ef5

Please sign in to comment.