Class LinkAttribute
Base link attribute
Inheritance
LinkAttribute
Inherited Members
Namespace: XData.Mapping
Assembly: XData.docfx.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class LinkAttribute : OptionalFilterAttribute
Constructors
| Improve this Doc View SourceLinkAttribute(String, String, String, String)
Base link attribute constructor
Declaration
public LinkAttribute(string linkedSource, string linkedFieldName, string source, string fieldName = "")
Parameters
Type | Name | Description |
---|---|---|
String | linkedSource | Secondary source alias |
String | linkedFieldName | Secondary field name |
String | source | Primary source alias |
String | fieldName | Primary field name |
Exceptions
Type | Condition |
---|---|
XDataRuntimeException | Secondary source alias cannot be null or empty string |
XDataRuntimeException | Secondary field name cannot be null or empty string |
Properties
| Improve this Doc View SourceFilterType
Filter type
Declaration
public override FilterType FilterType { get; }
Property Value
Type | Description |
---|---|
FilterType | Link |
Overrides
| Improve this Doc View SourceLinkedFieldName
Secondary field name
Declaration
public string LinkedFieldName { get; }
Property Value
Type | Description |
---|---|
String |
LinkedSourceAlias
Secondary source alias
Declaration
public string LinkedSourceAlias { get; }
Property Value
Type | Description |
---|---|
String |
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. |
Overrides
Extension Methods
SqlBlockExtensions.SetExpression<TTag, TResult>(TTag, Expression<Func<IBlockQueryAdapter, TResult>>)