|
8 | 8 | using JsonApiDotNetCore.Resources; |
9 | 9 | using JsonApiDotNetCore.Resources.Annotations; |
10 | 10 |
|
| 11 | +#pragma warning disable AV2310 // Code block should not contain inline comment |
| 12 | + |
11 | 13 | namespace JsonApiDotNetCore.Queries |
12 | 14 | { |
13 | 15 | /// <summary> |
@@ -90,14 +92,14 @@ public QueryLayer ComposeForGetByIdForNoSql<TId>(TId id, ResourceType primaryRes |
90 | 92 | Filter = new ComparisonExpression( |
91 | 93 | ComparisonOperator.Equals, |
92 | 94 | new ResourceFieldChainExpression( |
93 | | - primaryResourceType.Fields.Single(f => f.Property.Name == nameof(IIdentifiable<TId>.Id))), |
| 95 | + primaryResourceType.Fields.Single(field => field.Property.Name == nameof(IIdentifiable<TId>.Id))), |
94 | 96 | new LiteralConstantExpression(id.ToString()!)), |
95 | 97 | Include = IncludeExpression.Empty, |
96 | 98 | }; |
97 | 99 | } |
98 | 100 |
|
99 | 101 | /// <inheritdoc /> |
100 | | - public (QueryLayer QueryLayer, IncludeExpression Include) ComposeFromConstraintsAndFilterForNoSql( |
| 102 | + public (QueryLayer QueryLayer, IncludeExpression Include) ComposeFromConstraintsForNoSql( |
101 | 103 | ResourceType requestResourceType, |
102 | 104 | string propertyName, |
103 | 105 | string propertyValue, |
@@ -161,7 +163,7 @@ private static FilterExpression ComposeSecondaryResourceFilter( |
161 | 163 | { |
162 | 164 | return new ComparisonExpression( |
163 | 165 | ComparisonOperator.Equals, |
164 | | - new ResourceFieldChainExpression(resourceType.Fields.Single(f => f.Property.Name == propertyName)), |
| 166 | + new ResourceFieldChainExpression(resourceType.Fields.Single(field => field.Property.Name == propertyName)), |
165 | 167 | new LiteralConstantExpression(properyValue)); |
166 | 168 | } |
167 | 169 |
|
|
0 commit comments