Closed JoostKingma closed 4 years ago
I made a stackoverflow question about this issue and the user "gert-arnold" figured it out. This issue is not related to entity-framework.
Based on his answer I found an existing bug report here: https://feedback.azure.com/forums/908035-sql-server/suggestions/38357785-sql-server-profiler-textdata-column-handles-decima
The stackoverflow question: https://stackoverflow.com/questions/59152654/user-defined-table-in-entity-framework-generating-incorrect-query
When using the values (0.05 or 0.01) the query generator shows the values (5 or 1) when these are used within a
SqlDbType.Structured
SqlParameter
.I think this is best explained with code...
Currently the produced code is:
While the correct code would be:
Steps to reproduce
This is some standalone code to reproduce the issue
The User defined table definition:
some C# code, the context that is used isn't of importance for this issue.
Further technical details
EF version: 6.3 Database Provider: EntityFramework.SqlServer Operating system: Windows 10) IDE: Visual Studio 2017 15.6