@@ -22,32 +22,69 @@ namespace Ignia.Topics.ViewModels {
2222 /// </remarks>
2323 public class TopicViewModel : ITopicViewModel {
2424
25+ /*==========================================================================================================================
26+ | ID
27+ \-------------------------------------------------------------------------------------------------------------------------*/
2528 /// <inheritdoc />
2629 public int Id { get ; set ; }
2730
31+ /*==========================================================================================================================
32+ | KEY
33+ \-------------------------------------------------------------------------------------------------------------------------*/
2834 /// <inheritdoc />
2935 public string ? Key { get ; set ; }
3036
37+ /*==========================================================================================================================
38+ | CONTENT TYPE
39+ \-------------------------------------------------------------------------------------------------------------------------*/
3140 /// <inheritdoc />
3241 public string ? ContentType { get ; set ; }
3342
43+ /*==========================================================================================================================
44+ | UNIQUE KEY
45+ \-------------------------------------------------------------------------------------------------------------------------*/
3446 /// <inheritdoc />
3547 public string ? UniqueKey { get ; set ; }
3648
49+ /*==========================================================================================================================
50+ | WEB PATH
51+ \-------------------------------------------------------------------------------------------------------------------------*/
3752 /// <inheritdoc />
3853 public string ? WebPath { get ; set ; }
3954
55+ /*==========================================================================================================================
56+ | VIEW
57+ \-------------------------------------------------------------------------------------------------------------------------*/
4058 /// <inheritdoc />
4159 public string ? View { get ; set ; }
4260
61+ /*==========================================================================================================================
62+ | TITLE
63+ \-------------------------------------------------------------------------------------------------------------------------*/
4364 /// <inheritdoc />
4465 public string ? Title { get ; set ; }
4566
67+ /*==========================================================================================================================
68+ | IS HIDDEN?
69+ \-------------------------------------------------------------------------------------------------------------------------*/
4670 /// <inheritdoc />
4771 public bool IsHidden { get ; set ; }
4872
4973 public DateTime LastModified { get ; set ; }
5074
75+ /*==========================================================================================================================
76+ | PARENT
77+ \-------------------------------------------------------------------------------------------------------------------------*/
78+ /// <summary>
79+ /// Provides a reference to the parent <see cref="TopicViewModel"/> in the topic hierarchy.
80+ /// </summary>
81+ /// <remarks>
82+ /// If the current <see cref="TopicViewModel"/> is being mapped as part of another <see cref="TopicViewModel"/>, then the
83+ /// <see cref="Parent"/> property will only be mapped if that relationship includes a <see cref="FollowAttribute"/>
84+ /// with a value including <see cref="Relationships.Parents"/>. If it does, all <see cref="Parent"/> topics will be mapped
85+ /// up to the root of the site. No other relationships on the <see cref="Parent"/> view models will be mapped, even if
86+ /// they are annotated with a <see cref="FollowAttribute"/>.
87+ /// </remarks>
5188 [ Follow ( Relationships . Parents ) ]
5289 public TopicViewModel ? Parent { get ; set ; }
5390
0 commit comments