View Source
  Interface IReadRepository<TId, TEntity>
  
  Defines the base implementation of a reading repository.
 
  
  
  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
  
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | TId | 
        id | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    View Source
  
  Get(TId)
  
  
  Declaration
  
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | TId | 
        id | 
         | 
      
    
  
  Returns
  
  
    View Source
  
  GetMany(TId[])
  
  
  Declaration
  
    IEnumerable<TEntity> GetMany(params TId[] ids)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | TId[] | 
        ids | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | IEnumerable<TEntity> | 
         |