diff --git a/Dapper NET40/SqlMapper.cs b/Dapper NET40/SqlMapper.cs index 24c78f6d81185bec555f20158f4cda0a23f8e2f0..790d13581049b8a9226b83ea90ebd9f131f5b0c6 100644 --- a/Dapper NET40/SqlMapper.cs +++ b/Dapper NET40/SqlMapper.cs @@ -1833,7 +1833,7 @@ public static void PackListParameters(IDbCommand command, string namePrefix, obj private static IEnumerable FilterParameters(IEnumerable parameters, string sql) { - return parameters.Where(p => Regex.IsMatch(sql, @"[?@:]" + p.Name + "([^a-zA-Z0-9_]+|$)", RegexOptions.IgnoreCase | RegexOptions.Multiline)); + return parameters.Where(p => Regex.IsMatch(sql, @"[?@:]" + p.Name + "([^a-zA-Z0-9_]+|$)", RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.CultureInvariant)); } @@ -1924,15 +1924,6 @@ private static IEnumerable FilterParameters(IEnumerable("select @pid", new { PId = 1 }).Single(); + + Thread.CurrentThread.CurrentCulture = current; + } + class HasDoubleDecimal { public double A { get; set; }