ScientificReport
IRepository.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 
5 namespace ScientificReport.DAL.Interfaces
6 {
7  public interface IRepository<T, in I>
8  {
9  IEnumerable<T> All();
10  IEnumerable<T> AllWhere(Func<T, bool> predicate);
11  T Get(I id);
12  T Get(Func<T, bool> predicate);
13  void Create(T item);
14  void Update(T item);
15  void Delete(I id);
16  IQueryable<T> GetQuery();
17  }
18 
19  public interface IRepository<T>: IRepository<T, Guid>
20  {
21  }
22 }