Files
Umbraco-CMS/src/Umbraco.Core/Persistence/IReadRepository.cs

26 lines
638 B
C#
Raw Normal View History

2017-12-07 16:45:25 +01:00
using System.Collections.Generic;
namespace Umbraco.Cms.Core.Persistence
2017-12-07 16:45:25 +01:00
{
/// <summary>
/// Defines the base implementation of a reading repository.
/// </summary>
public interface IReadRepository<in TId, out TEntity> : IRepository
{
/// <summary>
/// Gets an entity.
/// </summary>
TEntity? Get(TId? id);
2017-12-07 16:45:25 +01:00
/// <summary>
/// Gets entities.
/// </summary>
2022-02-27 21:20:50 +01:00
IEnumerable<TEntity> GetMany(params TId[]? ids);
2017-12-07 16:45:25 +01:00
/// <summary>
/// Gets a value indicating whether an entity exists.
/// </summary>
bool Exists(TId id);
}
}