/// <summary> /// 获取当前的仓储上下文 /// </summary> public IRepositoryContext GetCurrentRepositoryContext() { var dbContext = _dbContextFactory.GetCurrentDataContext(); return(new RepositoryContext(dbContext, _cache, _eventBus, _logger)); }