Class ExternalLinkAttribute
Data object external link to other (child) data objects attribute
Inherited Members
Namespace: XData.Mapping
Assembly: XData.docfx.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class ExternalLinkAttribute : Attribute
Remarks
Used to organize master/detail relation between repositories
Constructors
| Improve this Doc View SourceExternalLinkAttribute(Type, String, String, String)
External link attribute
Declaration
public ExternalLinkAttribute(Type childType, string childProperty, string property = "", string filterName = "")
Parameters
Type | Name | Description |
---|---|---|
Type | childType | Child data object description type |
String | childProperty | Child property to link |
String | property | Parent property contains value to link |
String | filterName | Filter name |
Exceptions
Type | Condition |
---|---|
XDataRuntimeException | Child data object description type cannot be null |
XDataRuntimeException | Child property to link cannot be null or empty string |
Properties
| Improve this Doc View SourceChildLinkType
Child linked property type
Declaration
public Type ChildLinkType { get; set; }
Property Value
Type | Description |
---|---|
Type |
Remarks
Used when child repository linked through subquery
ChildProperty
Child property to link
Declaration
public string ChildProperty { get; }
Property Value
Type | Description |
---|---|
String |
ChildType
Child data object type
Declaration
public Type ChildType { get; }
Property Value
Type | Description |
---|---|
Type |
Combination
Filter combination (filter group) name
Declaration
public string Combination { get; set; }
Property Value
Type | Description |
---|---|
String |
See Also
| Improve this Doc View SourceDirectLink
Direct link slave to selected tree node
Declaration
public bool DirectLink { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Used to show/hide subtree related items in slave view when master is tree
When ShowSubtree = false - slave contains selected node child items only
When ShowSubtree = true - selected node and it's subtree child items
Works with ShowSubtree: External links marked as DirectLink is filled while ShowSubtree is false and omitted otherwise
FilterName
Filter name
Declaration
public string FilterName { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
If not assigned used FilterByChildProperty pattern
MasterRefresh
Refresh parent object notification on child submit
Declaration
public bool MasterRefresh { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Used when parent object contains calculated fields over child objects
Nullable
Filter null value handling
Declaration
public FilterNullable Nullable { get; set; }
Property Value
Type | Description |
---|---|
FilterNullable |
See Also
| Improve this Doc View SourceOperation
Filter operation
Declaration
public FilterOperation Operation { get; set; }
Property Value
Type | Description |
---|---|
FilterOperation |
See Also
| Improve this Doc View SourcePrimaryFilter
Primary filter flag
Declaration
public bool PrimaryFilter { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
See Also
| Improve this Doc View SourcePropertyName
Property to link
Declaration
public string PropertyName { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
If not assigned used ChildProperty name
TypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
Declaration
public override object TypeId { get; }
Property Value
Type | Description |
---|---|
Object | An Object that is a unique identifier for the attribute. |