-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit 4dc8115
Fixed: Sorting by ID from a lambda expression in a resource definition fails with error: Type 'JsonApiDotNetCore.Resources.Identifiable`1[System.Int64]' does not exist in the resource graph. (#1151)
The reason for failure is that in an expression like `book => book.Id`, the `Id` property is declared on `Identifiable<>`. The fix is to look at the type of the containing expression (which is `Book` in this case) when the `Id` property is used.1 parent 0e42ebf commit 4dc8115
File tree
2 files changed
+9
-3
lines changed- src/JsonApiDotNetCore/Resources
- test/JsonApiDotNetCoreTests/IntegrationTests/ResourceInheritance
2 files changed
+9
-3
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
119 | - | ||
119 | + | ||
120 | + | ||
121 | + | ||
122 | + | ||
120 | 123 |
| |
121 | 124 |
| |
122 | 125 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 | + | ||
46 | 47 |
| |
47 | 48 |
| |
48 | 49 |
| |
| |||
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
56 | - | ||
57 | + | ||
58 | + | ||
57 | 59 |
| |
58 | 60 |
| |
59 | 61 |
| |
| |||
63 | 65 |
| |
64 | 66 |
| |
65 | 67 |
| |
66 | - | ||
68 | + | ||
69 | + | ||
67 | 70 |
| |
68 | 71 |
| |
69 | 72 |
|
0 commit comments