Commit 2f482b1
committed
Migrate mapping services to use
The `TopicMappingService` and `ReverseTopicMappingService` (and, by extension, the `BindingModelValidator`) have been updated to pull the `ItemConfiguration` from `ItemMetadata` (or `PropertyMetadata`) (74cb817) instead of constructing a new version directly. This takes advantage of the caching of `TypeAccessor` and `ParameterMetadata`, thus ensuring the configuration data only needs to be assessed once per item.
This loses access to the `attributePrefix` state data, and thus temporarily breaks the `[MapToParent]` functionality. In a future commit, we'll update the `TopicMappingService` and `ReverseTopicMappingService` to relay that internally, and reference it as needed.
This may also temporarily break some references that were relying on specific properties of `PropertyConfiguration`, namely `MemberAccessor`; that will be resolved in a subsequent commit, when we begin relaying `MemberAccessor` instead of `PropertyConfiguration`.ItemMetadata.Configuration
1 parent 3a16de4 commit 2f482b1
4 files changed
Lines changed: 4 additions & 7 deletions
File tree
- OnTopic/Mapping
- Internal
- Reverse
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 44 | + | |
48 | 45 | | |
49 | 46 | | |
50 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | 151 | | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
| 395 | + | |
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| |||
0 commit comments