Example #1
0
 public TEntity Get(int id)
 {
     return(_context.Set <TEntity>().Find(id));
 }
Example #2
0
 public BaseRepository(EventsContext _context)
 {
     this.context = _context;
     this.dbSet   = context.Set <T>();
 }