using Domains;
namespace Infrastructure.Database
{
    public interface IReader
    {
        /// Get all entities of type  stored in storage
        /// Entity type to seek in storage
        IQueryable GetAll() where T : class, IEntity;
        /// Get one entity with specific  from storage
        /// Identifier of entity
        /// Cancellation Token
        /// Type of entity
        /// Entity or null if not found
        Task GetOneAsync(Guid id, CancellationToken cancellationToken) where T : class, IEntity;
    }
}