Class NavigationAttribute
Indicates that the property is "navigates" to another type.
Inheritance
System.Object
NavigationAttribute
Namespace: Paradigm.ORM.Data.Attributes
Assembly: Paradigm.ORM.Data.dll
Syntax
public class NavigationAttribute : Attribute
Remarks
This is common on Parent / child relationships.
Constructors
| Improve this Doc View SourceNavigationAttribute()
Initializes a new instance of the NavigationAttribute class.
Declaration
public NavigationAttribute()
NavigationAttribute(Type, String, String)
Initializes a new instance of the NavigationAttribute class.
Declaration
public NavigationAttribute(Type referencedType, string sourceProperty, string referencedProperty)
Parameters
Type | Name | Description |
---|---|---|
Type | referencedType | The name of the referenced type. |
System.String | sourceProperty | The name of the source property. |
System.String | referencedProperty | The name of the referenced property. |
Properties
| Improve this Doc View SourceReferencedProperty
Gets or sets the name of the referenced property.
Declaration
public string ReferencedProperty { get; set; }
Property Value
Type | Description |
---|---|
System.String | To property. |
ReferencedType
Gets or sets the name of the referenced type.
Declaration
public Type ReferencedType { get; set; }
Property Value
Type | Description |
---|---|
Type | To type. |
SourceProperty
Gets or sets the name of the source property.
Declaration
public string SourceProperty { get; set; }
Property Value
Type | Description |
---|---|
System.String | From property. |