Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    ReferencesAttribute(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 Source

    Type

    Gets or sets the Type of the referenced DTO/table

    Declaration
    public Type Type { get; set; }
    Property Value
    Type Description
    Type
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX