using System; using System.Collections.Generic; using System.Linq.Expressions; namespace Taloyhtio.GeneralSSO.Server.CodeFiles.Repositories { public interface IRepository { TEntity GetById(TKey id); void Save(TEntity entity); IEnumerable GetAll(); IEnumerable GetAllOrderBy(Expression> selector); IEnumerable GetAllOrderBy(Expression> selector, bool asc); void Delete(TEntity entity); bool Exist(TKey key); } }