Class ReferenceAttribute
Data object referenced inner view property attribute
Inherited Members
Namespace: XData.Mapping
Assembly: XData.docfx.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public sealed class ReferenceAttribute : PropertyBaseAttribute
Remarks
Used to map property to data of inner view declared PropertyAttribute or ColumnAttribute
Constructors
| Improve this Doc View SourceReferenceAttribute(String, String)
Data object referenced inner view property attribute
Declaration
public ReferenceAttribute(string source, string propertyName = "")
Parameters
Type | Name | Description |
---|---|---|
String | source | Source alias |
String | propertyName | Linked property name |
Exceptions
Type | Condition |
---|---|
XDataRuntimeException | Linked property name cannot be null or empty string |
Properties
| Improve this Doc View SourceIsLink
Property reference flag
Declaration
public override bool IsLink { get; }
Property Value
Type | Description |
---|---|
Boolean | True |
Overrides
| Improve this Doc View SourcePropertyName
Referenced property (or column) name
Declaration
public string PropertyName { get; }
Property Value
Type | Description |
---|---|
String |