public BaseRepository(HiroshimaMaaSDBContext context, IMessageHandler messageHandler, IUnitOfWork unitOfWork) { _context = context; _entities = context.Set <T>(); _messageHandler = messageHandler; _unitOfWork = unitOfWork; }
protected virtual DbSet <TEntity> GetDbSet <TEntity>() where TEntity : class { return(_context.Set <TEntity>()); }