Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IEntityRepository

    Namespace: Umbraco.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
    System.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
    System.Guid key
    Returns
    Type Description
    IEntitySlim
    View Source

    Get(Guid, Guid)

    Declaration
    IEntitySlim Get(Guid key, Guid objectTypeId)
    Parameters
    Type Name Description
    System.Guid key
    System.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
    System.Guid objectTypeId
    Returns
    Type Description
    IEntitySlim
    View Source

    GetAll(Guid, Guid[])

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

    GetAll(Guid, Int32[])

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

    GetAllPaths(Guid, Guid[])

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

    GetAllPaths(Guid, Int32[])

    Declaration
    IEnumerable<TreeEntityPath> GetAllPaths(Guid objectType, params int[] ids)
    Parameters
    Type Name Description
    System.Guid objectType
    System.Int32[] ids
    Returns
    Type Description
    System.Collections.Generic.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
    System.Collections.Generic.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
    System.Guid objectType
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IEntitySlim>
    View Source

    GetObjectType(Guid)

    Declaration
    UmbracoObjectTypes GetObjectType(Guid key)
    Parameters
    Type Name Description
    System.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
    System.Guid objectType
    System.Int64 pageIndex
    System.Int32 pageSize
    System.Int64 totalRecords
    IQuery<IUmbracoEntity> filter
    Ordering ordering
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IEntitySlim>
    View Source

    GetPagedResultsByQuery(IQuery<IUmbracoEntity>, Guid[], Int64, Int32, out Int64, IQuery<IUmbracoEntity>, Ordering, Action<Sql<ISqlContext>>)

    Gets paged entities for a query and a subset of object types

    Declaration
    IEnumerable<IEntitySlim> GetPagedResultsByQuery(IQuery<IUmbracoEntity> query, Guid[] objectTypes, long pageIndex, int pageSize, out long totalRecords, IQuery<IUmbracoEntity> filter, Ordering ordering, Action<Sql<ISqlContext>> sqlCustomization = null)
    Parameters
    Type Name Description
    IQuery<IUmbracoEntity> query
    System.Guid[] objectTypes
    System.Int64 pageIndex
    System.Int32 pageSize
    System.Int64 totalRecords
    IQuery<IUmbracoEntity> filter
    Ordering ordering
    System.Action<Sql<ISqlContext>> sqlCustomization

    A callback providing the ability to customize the generated SQL used to retrieve entities

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IEntitySlim>

    A collection of mixed entity types which would be of type IEntitySlim, IDocumentEntitySlim, IMediaEntitySlim, IMemberEntitySlim

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Exists(Guid)
      • Exists(Int32)
      • Get(Guid)
      • Get(Guid, Guid)
      • Get(Int32)
      • Get(Int32, Guid)
      • GetAll(Guid, Guid[])
      • GetAll(Guid, Int32[])
      • GetAllPaths(Guid, Guid[])
      • GetAllPaths(Guid, Int32[])
      • GetByQuery(IQuery<IUmbracoEntity>)
      • GetByQuery(IQuery<IUmbracoEntity>, Guid)
      • GetObjectType(Guid)
      • GetObjectType(Int32)
      • GetPagedResultsByQuery(IQuery<IUmbracoEntity>, Guid, Int64, Int32, out Int64, IQuery<IUmbracoEntity>, Ordering)
      • GetPagedResultsByQuery(IQuery<IUmbracoEntity>, Guid[], Int64, Int32, out Int64, IQuery<IUmbracoEntity>, Ordering, Action<Sql<ISqlContext>>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX