Search Results for

    Show / Hide Table of Contents
    View Source

    Class UserStartNodeDto

    Represents a data transfer object (DTO) that defines the start node configuration for a user within the Umbraco CMS persistence layer.

    Inheritance
    object
    Namespace: Umbraco.Cms.Infrastructure.Persistence.Dtos
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class UserStartNodeDto

    Constructors

    View Source

    UserStartNodeDto()

    Declaration
    public UserStartNodeDto()

    Fields

    View Source

    PrimaryKeyColumnName

    Declaration
    public const string PrimaryKeyColumnName = "id"
    Field Value
    Type Description
    string
    View Source

    TableName

    Declaration
    public const string TableName = "umbracoUserStartNode"
    Field Value
    Type Description
    string

    Properties

    View Source

    Id

    Gets or sets the unique identifier of the user start node.

    Declaration
    [PrimaryKeyColumn(Name = "PK_userStartNode")]
    public int Id { get; set; }
    Property Value
    Type Description
    int
    View Source

    StartNode

    Gets or sets the start node identifier for the user.

    Declaration
    [NullSetting(NullSetting = NullSettings.NotNull)]
    [ForeignKey(typeof(NodeDto))]
    public int StartNode { get; set; }
    Property Value
    Type Description
    int
    View Source

    StartNodeType

    Gets or sets the type of the start node, indicating whether the node is for content, media, or another type. The value is typically an integer representing the node type (e.g., 0 for content, 1 for media).

    Declaration
    [NullSetting(NullSetting = NullSettings.NotNull)]
    [Index(IndexTypes.UniqueNonClustered, ForColumns = "startNodeType, startNode, userId", Name = "IX_umbracoUserStartNode_startNodeType")]
    public int StartNodeType { get; set; }
    Property Value
    Type Description
    int
    View Source

    UserId

    Gets or sets the unique identifier of the user associated with this start node.

    Declaration
    [NullSetting(NullSetting = NullSettings.NotNull)]
    [ForeignKey(typeof(UserDto))]
    public int UserId { get; set; }
    Property Value
    Type Description
    int

    Methods

    View Source

    Equals(object?)

    Determines whether the specified object is equal to the current UserStartNodeDto instance.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current instance.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current instance; otherwise, false.

    View Source

    Equals(UserStartNodeDto?)

    Determines whether this instance and a specified UserStartNodeDto have the same identifier.

    Declaration
    public bool Equals(UserStartNodeDto? other)
    Parameters
    Type Name Description
    UserStartNodeDto other

    The UserStartNodeDto to compare with this instance.

    Returns
    Type Description
    bool

    true if the specified UserStartNodeDto has the same Id as this instance; otherwise, false.

    View Source

    GetHashCode()

    Returns a hash code for this instance, based on the Id property.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Operators

    View Source

    operator ==(UserStartNodeDto, UserStartNodeDto)

    Declaration
    public static bool operator ==(UserStartNodeDto left, UserStartNodeDto right)
    Parameters
    Type Name Description
    UserStartNodeDto left
    UserStartNodeDto right
    Returns
    Type Description
    bool
    View Source

    operator !=(UserStartNodeDto, UserStartNodeDto)

    Declaration
    public static bool operator !=(UserStartNodeDto left, UserStartNodeDto right)
    Parameters
    Type Name Description
    UserStartNodeDto left
    UserStartNodeDto right
    Returns
    Type Description
    bool
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX