Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Created Unassigned: LogCommand_logs_command_text_and_parameters test failed with hungarian culture [1160]

$
0
0
System.Data.Entity.Infrastructure.DbCommandLoggerTests+LogCommand.LogCommand_logs_command_text_and_parameters: Assert.Equal() Failure
Position: First difference is at position 13
Expected: -- Param2: '7.7' (Type = Decimal, Direction = InputOutput, IsNullable = false, Size = -1, Precision = 18, Scale = 2)
Actual: -- Param2: '7,7' (Type = Decimal, Direction = InputOutput, IsNullable = false, Size = -1, Precision = 18, Scale = 2)
at System.Data.Entity.Infrastructure.DbCommandLoggerTests.LogCommand.LogCommand_logs_command_text_and_parameters() in DbCommandLoggerTests.cs:line 359


In DbCommandLogger LogParameter method the parameter.Value should be converted to string with invatiant culture (currently line 285):
.Append((parameter.Value == null || parameter.Value == DBNull.Value) ? "null" : parameter.Value.ToString(CultureInfo.InvariantCulture))


Viewing all articles
Browse latest Browse all 10318

Trending Articles