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

Commented Issue: [LOC] 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))

Comments: I'm in the code so I'll try to fix.

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>