Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IEntityRepository

    Namespace: Umbraco.Cms.Core.Persistence.Repositories
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IEntityRepository : IRepository

    Methods

    View Source

    Exists(Guid)

    Declaration
    bool Exists(Guid key)
    Parameters
    Type Name Description
    Guid key
    Returns
    Type Description
    System.Boolean
    View Source

    Exists(Int32)

    Declaration
    bool Exists(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    System.Boolean
    View Source

    Get(Guid)

    Declaration
    IEntitySlim Get(Guid key)
    Parameters
    Type Name Description
    Guid key
    Returns
    Type Description
    IEntitySlim
    View Source

    Get(Guid, Guid)

    Declaration
    IEntitySlim Get(Guid key, Guid objectTypeId)
    Parameters
    Type Name Description
    Guid key
    Guid objectTypeId
    Returns
    Type Description
    IEntitySlim
    View Source

    Get(Int32)

    Declaration
    IEntitySlim Get(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    IEntitySlim
    View Source

    Get(Int32, Guid)

    Declaration
    IEntitySlim Get(int id, Guid objectTypeId)
    Parameters
    Type Name Description
    System.Int32 id
    Guid objectTypeId
    Returns
    Type Description
    IEntitySlim
    View Source

    GetAll(Guid, Guid[])

    Declaration
    IEnumerable<IEntitySlim> GetAll(Guid objectType, params Guid[] keys)
    Parameters
    Type Name Description
    Guid objectType
    Guid[] keys
    Returns
    Type Description
    IEnumerable<IEntitySlim>
    View Source

    GetAll(Guid, Int32[])

    Declaration
    IEnumerable<IEntitySlim> GetAll(Guid objectType, params int[] ids)
    Parameters
    Type Name Description
    Guid objectType
    System.Int32[] ids
    Returns
    Type Description
    IEnumerable<IEntitySlim>
    View Source

    GetAllPaths(Guid, Guid[])

    Declaration
    IEnumerable<TreeEntityPath> GetAllPaths(Guid objectType, params Guid[] keys)
    Parameters
    Type Name Description
    Guid objectType
    Guid[] keys
    Returns
    Type Description
    IEnumerable<TreeEntityPath>
    View Source

    GetAllPaths(Guid, Int32[])

    Declaration
    IEnumerable<TreeEntityPath> GetAllPaths(Guid objectType, params int[] ids)
    Parameters
    Type Name Description
    Guid objectType
    System.Int32[] ids
    Returns
    Type Description
    IEnumerable<TreeEntityPath>
    View Source

    GetByQuery(IQuery<IUmbracoEntity>)

    Gets entities for a query

    Declaration
    IEnumerable<IEntitySlim> GetByQuery(IQuery<IUmbracoEntity> query)
    Parameters
    Type Name Description
    IQuery<IUmbracoEntity> query
    Returns
    Type Description
    IEnumerable<IEntitySlim>
    View Source

    GetByQuery(IQuery<IUmbracoEntity>, Guid)

    Gets entities for a query and a specific object type allowing the query to be slightly more optimized

    Declaration
    IEnumerable<IEntitySlim> GetByQuery(IQuery<IUmbracoEntity> query, Guid objectType)
    Parameters
    Type Name Description
    IQuery<IUmbracoEntity> query
    Guid objectType
    Returns
    Type Description
    IEnumerable<IEntitySlim>
    View Source

    GetObjectType(Guid)

    Declaration
    UmbracoObjectTypes GetObjectType(Guid key)
    Parameters
    Type Name Description
    Guid key
    Returns
    Type Description
    UmbracoObjectTypes
    View Source

    GetObjectType(Int32)

    Declaration
    UmbracoObjectTypes GetObjectType(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    UmbracoObjectTypes
    View Source

    GetPagedResultsByQuery(IQuery<IUmbracoEntity>, Guid, Int64, Int32, out Int64, IQuery<IUmbracoEntity>, Ordering)

    Gets paged entities for a query and a specific object type

    Declaration
    IEnumerable<IEntitySlim> GetPagedResultsByQuery(IQuery<IUmbracoEntity> query, Guid objectType, long pageIndex, int pageSize, out long totalRecords, IQuery<IUmbracoEntity> filter, Ordering ordering)
    Parameters
    Type Name Description
    IQuery<IUmbracoEntity> query
    Guid objectType
    System.Int64 pageIndex
    System.Int32 pageSize
    System.Int64 totalRecords
    IQuery<IUmbracoEntity> filter
    Ordering ordering
    Returns
    Type Description
    IEnumerable<IEntitySlim>
    View Source

    ReserveId(Guid)

    Declaration
    int ReserveId(Guid key)
    Parameters
    Type Name Description
    Guid key
    Returns
    Type Description
    System.Int32
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX