Asynchronous ADO.NET

I am trying to write an asynchronous server that queries a SQL Server database, and I am concerned that my side of the DB is too synchronous. In particular, I can invoke ExecuteReader asynchronously, but cannot invoke reader.Item asynchronously and where 57% of the time is wasted (blocking my precious thread!).

Is this the most asynchronous thing I can do with ADO.NET or is there an asynchronous way to make reader.Item ?

+7
source share
1 answer

It seems that this problem should be fixed in the next version of the framework:

DbDataReader.ReadAsync as well as DbDataReader.NextResultAsync

+6
source

All Articles