Class ReferencesAttribute
Attribute that represents a reference between two tables/DTOs
Inheritance
object
Attribute
Namespace: Umbraco.Cms.Infrastructure.Persistence.DatabaseAnnotations
Assembly: Umbraco.Infrastructure.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Property)]
public class ReferencesAttribute : Attribute
Constructors
View SourceReferencesAttribute(Type)
Initializes a new instance of the ReferencesAttribute class, specifying the type that is referenced by the decorated property or field.
Declaration
public ReferencesAttribute(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The Type that the decorated member references, typically representing a related entity or table. |
Properties
View SourceType
Gets or sets the Type of the referenced DTO/table
Declaration
public Type Type { get; set; }
Property Value
| Type | Description |
|---|---|
| Type |