-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEntityPathComponent.cs
More file actions
31 lines (28 loc) · 1011 Bytes
/
EntityPathComponent.cs
File metadata and controls
31 lines (28 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using Rock.Data;
namespace EntityCoding
{
/// <summary>
/// Describes a single element of an <see cref="EntityPath"/>.
/// </summary>
public class EntityPathComponent
{
/// <summary>
/// The entity at this specific location in the path.
/// </summary>
public IEntity Entity { get; private set; }
/// <summary>
/// The name of the property used to reach the next location in the path.
/// </summary>
public string PropertyName { get; private set; }
/// <summary>
/// Create a new entity path component.
/// </summary>
/// <param name="entity">The entity at this specific location in the path.</param>
/// <param name="propertyName">The name of the property used to reach the next location in the path.</param>
public EntityPathComponent( IEntity entity, string propertyName )
{
Entity = entity;
PropertyName = propertyName;
}
}
}