async Indexer in C#
问题 Recently, we have movied to EF 6 and we have begun to use EF async commands. For example in my repository I have the following method: // Gets entities asynchron in a range starting from skip. // Take defines the maximum number of entities to be returned. public async Task<IEnumerable<TEntity>> GetRangeAsync(int skip, int take) { var entities = this.AddIncludes(this.DbContext.Set<TEntity>()) .OrderBy(this.SortSpec.PropertyName) .Skip(skip) .Take(take) .ToListAsync(); return await entities; }