Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IReadRepository<TId, TEntity>

    Defines the base implementation of a reading repository.

    Namespace: Umbraco.Cms.Core.Persistence
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IReadRepository<in TId, out TEntity> : IRepository
    Type Parameters
    Name Description
    TId
    TEntity

    Methods

    View Source

    Exists(TId)

    Gets a value indicating whether an entity exists.

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

    Get(TId)

    Gets an entity.

    Declaration
    TEntity Get(TId id)
    Parameters
    Type Name Description
    TId id
    Returns
    Type Description
    TEntity
    View Source

    GetMany(TId[])

    Gets entities.

    Declaration
    IEnumerable<TEntity> GetMany(params TId[] ids)
    Parameters
    Type Name Description
    TId[] ids
    Returns
    Type Description
    IEnumerable<TEntity>
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Exists(TId)
      • Get(TId)
      • GetMany(TId[])
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX