dotnet-db-samples | NET code samples for Oracle database developers | SQL Database library
kandi X-RAY | dotnet-db-samples Summary
kandi X-RAY | dotnet-db-samples Summary
.NET code samples for Oracle database developers
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dotnet-db-samples
dotnet-db-samples Key Features
dotnet-db-samples Examples and Code Snippets
Community Discussions
Trending Discussions on dotnet-db-samples
QUESTION
I have a generic reader and I want to transform it from sync to async.
The original code is
...ANSWER
Answered 2020-Sep-16 at 08:15I asssume you're talking about the DbDataReader
Class.
From the documentation:
Reads a forward-only stream of rows from a data source.
Once the row is read by either Read or ReadAsync, the values for that row will all be in memory, which doesn't require any I/O and, thus, doesn't need to be asynchronous.
Update:
Turns out, there's a GetFieldValueAsync
method in the DbDataReader
Class, but not a GetValueAsync
method.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dotnet-db-samples
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page