npgsql / doc

Documentation site for npgsql
http://npgsql.org/
27 stars 76 forks source link

Basic Usage NpgsqlCommand ExecuteReaderAsync Return Value Is Wrong #339

Closed onurmx closed 7 months ago

onurmx commented 7 months ago

Hello Everyone!

In Npgsql Basic Usage docs, specifically at this and this lines it states that I can use ReadAsync method from directly reader result.

However, in reality ExecuteReaderAsync returns Task and this is already stated at API reference. Can we fix that issue? Thanks in advance.

roji commented 7 months ago

@onurmx I don't understand - the docs clearly show an await just before ExecuteReaderAsync, as is standard with Task-returning async methods. What do you think needs fixing?

onurmx commented 7 months ago

Hi @roji ,

Yes, I am sorry. It is my mistake. We can close the issue with no action.

Best regards.