Should I return Task<IEnumerable<T>> or IAsyncEnumerable<T> from repository? – Asp.net
What is the correct way of repository implementation in EF Core? public IAsyncEnumerable<Order> GetOrder(int orderId) { return blablabla.AsAsyncEnumerable(); } or public Task<IEnumerable<Order>> GetOrder(int orderId) { return blablabla.ToListAsync(); } Is it performance wise to call AsAsyncEnumerable()? Is this approach safe? From…