|
7 | 7 | namespace OnTopic.Mapping.Annotations { |
8 | 8 |
|
9 | 9 | /*============================================================================================================================ |
10 | | - | ATTRIBUTE: FOLLOW |
| 10 | + | ATTRIBUTE: INCLUDE |
11 | 11 | \---------------------------------------------------------------------------------------------------------------------------*/ |
12 | 12 | /// <summary> |
13 | | - /// Instructs the <see cref="ITopicMappingService"/> to continue following relationships on that property. Optionally |
14 | | - /// specifies which relationships should be followed. |
| 13 | + /// Instructs the <see cref="ITopicMappingService"/> to include the specified <see cref="Associations"/> on that property. |
15 | 14 | /// </summary> |
16 | 15 | /// <remarks> |
17 | 16 | /// <para> |
18 | | - /// By default, <see cref="ITopicMappingService"/> will populate all relationships on the initial data transfer object, |
19 | | - /// but won't continue to do so on related objects. So, for instance, a <c>Children</c> collection will cause all children |
20 | | - /// to be loaded, but the mapper won't populate their <c>Children</c> (assuming that property is set). |
| 17 | + /// By default, <see cref="ITopicMappingService"/> will populate all associations on the initial data transfer object, |
| 18 | + /// but won't continue to do so on associated objects. So, for instance, a <c>Children</c> collection will cause all |
| 19 | + /// children to be loaded, but the mapper won't populate <i>their</i> <c>Children</c> (assuming that property is |
| 20 | + /// available). |
21 | 21 | /// </para> |
22 | 22 | /// <para> |
23 | | - /// The <see cref="FollowAttribute"/> overrides this behavior. If set, the <see cref="ITopicMappingService"/> will |
24 | | - /// populate the <see cref="Associations"/> specified on the related topics. By default, it will crawl <i>all</i> |
25 | | - /// relationships, but the <see cref="Associations"/> flag can optionally be used to specify one or multiple |
26 | | - /// relationship types, thus providing fine-tune control. |
| 23 | + /// The <see cref="IncludeAttribute"/> overrides this behavior. If set, the <see cref="ITopicMappingService"/> will |
| 24 | + /// populate the <see cref="Associations"/> specified on the associated topics. |
27 | 25 | /// </para> |
28 | 26 | /// </remarks> |
29 | 27 | [System.AttributeUsage(System.AttributeTargets.Property)] |
30 | | - public sealed class FollowAttribute : System.Attribute { |
| 28 | + public sealed class IncludeAttribute : System.Attribute { |
31 | 29 |
|
32 | 30 | /*========================================================================================================================== |
33 | 31 | | CONSTRUCTOR |
34 | 32 | \-------------------------------------------------------------------------------------------------------------------------*/ |
35 | 33 | /// <summary> |
36 | | - /// Annotates a property with the <see cref="FollowAttribute"/> by providing an <paramref name="associations"/>. |
| 34 | + /// Annotates a property with the <see cref="IncludeAttribute"/> by providing an <paramref name="associations"/>. |
37 | 35 | /// </summary> |
38 | 36 | /// <param name="associations">The specific associations that should be crawled.</param> |
39 | | - public FollowAttribute(AssociationTypes associations) { |
| 37 | + public IncludeAttribute(AssociationTypes associations) { |
40 | 38 | Associations = associations; |
41 | 39 | } |
42 | 40 |
|
43 | 41 | /*========================================================================================================================== |
44 | | - | PROPERTY: RELATIONSHIPS |
| 42 | + | PROPERTY: ASSOCIATIONS |
45 | 43 | \-------------------------------------------------------------------------------------------------------------------------*/ |
46 | 44 | /// <summary> |
47 | | - /// Gets the type(s) of relationships that should be recursed over. |
| 45 | + /// Gets the type(s) of associations that should be recursed over. |
48 | 46 | /// </summary> |
49 | 47 | public AssociationTypes Associations { get; } |
50 | 48 |
|
|
0 commit comments