Closed Epic-Santiago closed 1 year ago
This issue has been closed because EF6 is no longer being actively developed. We are instead focusing on stability of the codebase, which means we will only make changes to address security issues. See the repo README for more information.
When the SQL statement is emitted, it is written using the current culture rather than
CultureInfo.InvariantCulture
. This can cause the SQL statement to be invalid. For example, in Finnish, theNumberFormat.NegativeSign
is − (0x2212) instead of - (0x2D). Negative longs and ints (and probably others) become invalid in SQL because instead of -1, −1 is written.Repro:
Include stack traces
Include provider and version information
EF version: 6.4.4 Database provider: System.Data.SqlClient 4.8.5 Target framework: net6.0 Operating system: Windows 10 IDE: Visual Studio 2022 17.5.2