-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
api-suggestionEarly API idea and discussion, it is NOT ready for implementationEarly API idea and discussion, it is NOT ready for implementationarea-System.Threading.Tasks
Milestone
Description
I'm studying C# 8 and new we have a new interface call IAsyncEnumerable and I was think maybe it's a good ideia create a new interface call IAsyncQueryable to be possible using await foreach async with ORM like EF or NHibernarte:
IAsyncQueryable query = database.Where(...);
await foreach(var a in query) {
...
}I was thinking IAsyncQueryable could be:
public interface IAsyncQueryable : IAsyncEnumerable
{
Type ElementType { get; }
Expression Expression { get; }
IQueryProvider Provider { get; }
}
public interface IAsyncQueryable<T> : IAsyncQueryable, IAsyncEnumerable<T>
{
}or
public interface IAsyncQueryable : IQueryable, IAsyncEnumerable
{
}
public interface IAsyncQueryable<T> : IQueryable<T>, IAsyncQueryable, IAsyncEnumerable<T>
{
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api-suggestionEarly API idea and discussion, it is NOT ready for implementationEarly API idea and discussion, it is NOT ready for implementationarea-System.Threading.Tasks