public GenericRepository(HistoryDbContext context)
 {
     _context = context;
     dbSet    = _context.Set <T>();
 }
Example #2
0
 public GenericRepository(HistoryDbContext context, IDataShaper <T> dataShaper)
 {
     _context    = context;
     dbSet       = _context.Set <T>();
     _dataShaper = dataShaper;
 }
 public BaseRepository(HistoryDbContext context)
 {
     this.context = context;
     table        = context.Set <T>();
 }