Class LinkPropertyAttribute
Data object link property attribute
Inherited Members
Namespace: XData.Mapping
Assembly: XData.docfx.dll
Syntax
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public sealed class LinkPropertyAttribute : Attribute
Remarks
Used to declare source and destination properties to copy values when assigned Source
Every link from DictSource to Property mast be declared as separated LinkPropertyAttribute
WARNING! Applicable to Link<TVal, TSrc> typed properties only!
Constructors
| Improve this Doc View SourceLinkPropertyAttribute(String, String)
Data object link property attribute
Declaration
public LinkPropertyAttribute(string dictSource = null, string property = null)
Parameters
Type | Name | Description |
---|---|---|
String | dictSource | Dictionary source object property |
String | property | Property to fill |
Properties
| Improve this Doc View SourceDictSource
Dictionary source object property
Declaration
public string DictSource { get; }
Property Value
Type | Description |
---|---|
String |
Property
Property to fill
Declaration
public string Property { get; set; }
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. |