using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Data.Models.Interfaces.Database { public interface IRepository where TEntity : class { //Add Entity to database Task AddAsync(TEntity entity); //Return *count* instances of Entity from the database IEnumerable Query(int count); //Find entity by id Task GetByIdAsync(Guid id); //Modify Entity from database Task EditAsync(TEntity newEntity); //Delete Entity from database Task DeleteAsync(TEntity entity); } }