Permalink
Browse files

Avoiding errors when indexes use .ToString(CultureInfo.InvariantCulture)

  • Loading branch information...
synhershko committed Apr 9, 2012
1 parent c7bd1ec commit 555874fb645b730597eaa0036a7230a6d752fb2b
Showing with 3 additions and 0 deletions.
  1. +3 −0 Raven.Database/Linq/QueryParsingUtils.cs
@@ -9,6 +9,7 @@
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Specialized;
+using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
@@ -43,7 +44,9 @@ public static string GenerateText(TypeDeclaration type, OrderedPartCollection<Ab
typeof (int).Namespace,
typeof (LinqOnDynamic).Namespace,
typeof(Field).Namespace,
+ typeof(CultureInfo).Namespace,
};
+
foreach (var extension in extensions)
{
foreach (var ns in extension.Value.GetNamespacesToImport())

0 comments on commit 555874f

Please sign in to comment.