Commit aab51f6
committed
Allow
Previously, `LastModified` was treated as readonly, to align with the original expectation that `AttributeValue` would be immutable. That's not how it's ended up being treated, however, and here we have a scenario where the `LastModified` needs to be updated. This is because `EnforceBusinessLogic` will trigger `SetValue()` indirectly via an `[AttributeSetter]` property. That's fine for updating the value. But for load and import scenarios, the `[AttributeSetter]` property will orphan the `Version` date intended to be used for the `LastModified` property. As such, we're exposing a setter to allow that property to be updated after this occurs. Since this is an outside scenario intended only to support infrastructure, however, the setter is marked as `internal`; there is no supported scenario where this should be updated directly by external callers.LastModified to be (internally) updated1 parent 25b99b4 commit aab51f6
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
417 | 418 | | |
418 | 419 | | |
419 | 420 | | |
| |||
0 commit comments