Пример #1
0
 public BaseRepository(HiroshimaMaaSDBContext context, IMessageHandler messageHandler, IUnitOfWork unitOfWork)
 {
     _context        = context;
     _entities       = context.Set <T>();
     _messageHandler = messageHandler;
     _unitOfWork     = unitOfWork;
 }
Пример #2
0
 protected virtual DbSet <TEntity> GetDbSet <TEntity>() where TEntity : class
 {
     return(_context.Set <TEntity>());
 }