Skip to content

Commit

Permalink
Fix collation mismatch when using tempdb
Browse files Browse the repository at this point in the history
issue 12
  • Loading branch information
timabell committed Nov 24, 2014
1 parent 98f0b37 commit 8e0076d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EfEnumToLookup/LookupGenerator/EnumToLookup.cs
Expand Up @@ -101,7 +101,7 @@ private void PopulateLookup(Type lookup, Action<string> runSql)
}

var sb = new StringBuilder();
sb.AppendLine(string.Format("CREATE TABLE #lookups (Id int, Name nvarchar({0}));", NameFieldLength));
sb.AppendLine(string.Format("CREATE TABLE #lookups (Id int, Name nvarchar({0}) COLLATE database_default);", NameFieldLength));
foreach (var value in Enum.GetValues(lookup))
{
if (IsRuntimeOnly(value, lookup))
Expand Down

0 comments on commit 8e0076d

Please sign in to comment.