我正在尝试使我的通用基础存储库全部异步,并且我有代码:
public IEnumerable<T> GetAll() { return _dbContext.Set<T>(); } public IQueryable<T> GetQueryable() { return _dbContext.Set<T>(); }
既然没有诸如 之类的方法SetAsync,我怎样才能使这些方法异步呢?
SetAsync
.net c# entity-framework async-await asp.net-core
.net ×1
asp.net-core ×1
async-await ×1
c# ×1
entity-framework ×1