Commit dc6b8ad
committed
Merge branch 'improvement/ModelType-reflexive' into develop
Introduced a special `ModelType.Reflexive` enum value in order to support the proposed `ReflexiveAttribute` plugin for the OnTopic Editor (OnTopicCMS/OnTopic-Editor-AspNetCore#44), which allows an attribute placed on an `AttributeDescriptor` to "reflect" back that `AttributeDescriptor` as an attribute, thus allowing e.g. `AttributeDescriptor.DefaultValue` to use the same values as the `AttributeDescriptor` it describes, including the same storage location, as described by its `AttributeDescriptor.ModelType`. It does this by falling back to the `ModelType` of the current topic when the `ModelType` of an `AttributeDescriptor` on its `ContentTypeDescriptor` is set to `Reflexive`.1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
59 | 73 | | |
60 | 74 | | |
61 | 75 | | |
0 commit comments