Search Results for

    Show / Hide Table of Contents
    View Source

    Class QueryModel

    Represents a query model for building template queries with filters and sorting.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models.TemplateQuery
    Assembly: Umbraco.Core.dll
    Syntax
    public class QueryModel

    Constructors

    View Source

    QueryModel()

    Declaration
    public QueryModel()

    Properties

    View Source

    ContentType

    Gets or sets the content type to filter by.

    Declaration
    public ContentTypeModel? ContentType { get; set; }
    Property Value
    Type Description
    ContentTypeModel
    View Source

    Filters

    Gets or sets the collection of filter conditions.

    Declaration
    public IEnumerable<QueryCondition>? Filters { get; set; }
    Property Value
    Type Description
    IEnumerable<QueryCondition>
    View Source

    Sort

    Gets or sets the sort expression for ordering results.

    Declaration
    public SortExpression? Sort { get; set; }
    Property Value
    Type Description
    SortExpression
    View Source

    Source

    Gets or sets the source node for the query.

    Declaration
    public SourceModel? Source { get; set; }
    Property Value
    Type Description
    SourceModel
    View Source

    Take

    Gets or sets the maximum number of items to return.

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