Class PropertyPath
The path from an entity to some property, possibly passing through multiple relationships.
public sealed record PropertyPath : IColumn, IEquatable<PropertyPath>
- Inheritance
-
PropertyPath
- Implements
- Inherited Members
- Extension Methods
Remarks
See remarks on RelationshipPath if you think this shouldn't be called a path.
Constructors
PropertyPath(RelationshipPath, AttributeInfo?)
public PropertyPath(RelationshipPath relationshipPath, AttributeInfo? attribute)
Parameters
relationshipPathRelationshipPathattributeAttributeInfo
Properties
Attribute
public AttributeInfo? Attribute { get; }
Property Value
RelationshipPath
public RelationshipPath RelationshipPath { get; }
Property Value
Methods
Append(PropertyInfo)
public PropertyPath Append(PropertyInfo property)
Parameters
propertyPropertyInfo
Returns
Create(AttributeInfo)
public static PropertyPath Create(AttributeInfo attribute)
Parameters
attributeAttributeInfo
Returns
Create(IEntityInfo)
public static PropertyPath Create(IEntityInfo type)
Parameters
typeIEntityInfo
Returns
Create(PropertyInfo)
public static PropertyPath Create(PropertyInfo property)
Parameters
propertyPropertyInfo
Returns
Create(RelationshipInfo, params PropertyInfo[])
public static PropertyPath Create(RelationshipInfo firstRelationship, params PropertyInfo[] otherProperties)
Parameters
firstRelationshipRelationshipInfootherPropertiesPropertyInfo[]
Returns
DeserialisePath(IEntityInfo, string[])
public static PropertyPath DeserialisePath(IEntityInfo type, string[] path)
Parameters
typeIEntityInfopathstring[]
Returns
DeserialisePaths(IEntityInfo, string, ILogger)
public static IEnumerable<PropertyPath> DeserialisePaths(IEntityInfo type, string prefs, ILogger logger)
Parameters
typeIEntityInfoprefsstringloggerILogger
Returns
GetHeader()
public string GetHeader()
Returns
GetLength()
public int GetLength()
Returns
GetMetadata()
public PropertyInfo GetMetadata()
Returns
GetPrefixes()
public IEnumerable<PropertyPath> GetPrefixes()
Returns
GetTail()
public PropertyPath GetTail()
Returns
GetText(EntityKernel)
public string GetText(EntityKernel row)
Parameters
rowEntityKernel
Returns
GetValues(EntityKernel)
public object?[] GetValues(EntityKernel row)
Parameters
rowEntityKernel
Returns
- object[]
IsEmpty()
public bool IsEmpty()
Returns
IsStrictPrefixOf(PropertyPath)
public bool IsStrictPrefixOf(PropertyPath other)
Parameters
otherPropertyPath
Returns
Prepend(RelationshipInfo)
public PropertyPath Prepend(RelationshipInfo r)
Parameters
Returns
SerialisePath()
public string SerialisePath()
Returns
SerialisePaths(IEnumerable<PropertyPath>)
public static string SerialisePaths(IEnumerable<PropertyPath> prefs)
Parameters
prefsIEnumerable<PropertyPath>
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.