FromSqlRaw throws Exception when querying all objects that contain a certain string property in a json array column #29355
Labels
area-json
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
Servicing-approved
type-bug
Milestone
I've got the following records in an SQL Server database table.
The following query will return element 1 aka List1, when I execute it directly in SQL Server. It returns all records that contain an item in the json array that has the property
Text
with the valueTest1
.When I execute the same query in EF Core via
FromSqlRaw
, I get an exceptions. The exception differs depending on the daily build. The stack traces for those are attached below.I don't rule out, that I want something from the raw SQL query that is just not possible in the moment. Or it needs to be done in a different way.
C# Example
Stack traces (7.0.0-rtm.22512.3)
Stack traces (8.0.0-alpha.1.22416.5)
Include provider and version information
EF Core version: 7.0.0-rtm.22512.3 and 8.0.0-alpha.1.22416.5
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 7.0 RC2
IDE: Visual Studio 2022 17.4.0 Preview 3.0
The text was updated successfully, but these errors were encountered: