コード例 #1
0
 public T GetById <T>(int id) where T : Entity
 {
     return(_dbContext.Set <T>().SingleOrDefault(e => e.Id == id));
 }
コード例 #2
0
 public IQueryable <T> FindAll()
 {
     return(RepositoryContext.Set <T>().AsNoTracking());
 }