using System; using System.Collections.Generic; using System.Linq.Expressions; namespace PEIS.Repositories { public interface IRepository where TEntity :class { TEntity Get(int id); IEnumerable GetAll(); IEnumerable Find(Expression> predicate); void Add(TEntity entity); void AddRange(IEnumerable entities); void Remove(TEntity entity); void RemoveRange(IEnumerable entities); } }