using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks; namespace CQRS_Simple.Infrastructure.Dapper { public interface IDapperRepository where T : Entity { Task AddAsync(T item); Task RemoveAsync(T item); Task UpdateAsync(T item); Task GetByIdAsync(TC id); Task> FindAsync(Expression> predicate); Task> GetAllAsync(); } }