コード例 #1
0
 public T Find(Expression <Func <T, bool> > match)
 {
     return(RepoExtensions.Include(_dbSet, _include).AsTracking(_tracking).FirstOrDefault(match));
 }
コード例 #2
0
 public IEnumerable <T> GetAll(Expression <Func <T, bool> > match)
 {
     return(RepoExtensions.Include(_dbSet, _include).AsTracking(_tracking).Where(match).ToList());
 }
コード例 #3
0
 public T GetById(int id)
 {
     return(RepoExtensions.Include(_dbSet, _include).AsTracking(_tracking).FirstOrDefault(e => e.Id == id));
 }
コード例 #4
0
 public IEnumerable <T> GetAll()
 {
     return(RepoExtensions.Include(_dbSet, _include).AsTracking(_tracking).ToList());
 }