Commit 2c11e89
Use fallback type mapping when FindMapping returns null
Instead of skipping the JSON conversion when FindMapping returns null, use the parameter's existing TypeMapping as a fallback. This prevents NullReferenceException while maintaining correct query behavior.
Co-authored-by: renemadsen <[email protected]>1 parent a38d24e commit 2c11e89
File tree
1 file changed
+6
-3
lines changed- src/EFCore.MySql/Query/ExpressionVisitors/Internal
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | | - | |
45 | | - | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
0 commit comments