using System.Collections.Generic; using PetaPoco; namespace PetaPoco.Business.Interface { interface IRepository { T Single(object primaryKey); IEnumerable Query(); List Fetch(); Page PagedQuery(long pageNumber, long itemsPerPage, string sql, params object[] args); int Insert(object itemToAdd); int Update(object itemToUpdate, object primaryKeyValue); int Delete(object primaryKeyValue); } }