Example Generic Repository:
public interface IGenericRepository<T> where T : class
{
IQueryable<T> GetAll();
IQueryable<T> FindBy(Expression<Func<T, bool>> predicate);
void Add(T entity);
void Delete(T entity);
void Update(T entity);
void Save();
}
I am looking to use the repository pattern in model layer of my application and can't seem to find much on the subject when comparing c# generic types to objective-c.