11using System.Data.SqlClient;
13using Microsoft.Data.SqlClient;
15using System.Threading.Tasks;
51 throw new NotSupportedException(
"GetFieldValueAsync");
64 throw new NotSupportedException(
"GetFieldValueAsync");
65 return SqlDataReader.GetFieldValueAsync<T>(ordinal, cancellationToken);
77 throw new NotSupportedException(
"IsDbNullAsync");
88 public Task<bool>
IsDbNullAsync(
int ordinal, System.Threading.CancellationToken cancellationToken)
91 throw new NotSupportedException(
"IsDbNullAsync");
92 return SqlDataReader.IsDBNullAsync(ordinal, cancellationToken);
102 throw new NotSupportedException(
"NextResultAsync");
111 public Task<bool>
NextResultAsync(System.Threading.CancellationToken cancellationToken)
114 throw new NotSupportedException(
"NextResultAsync");
125 throw new NotSupportedException(
"NextResultAsync");
134 public Task<bool>
ReadAsync(System.Threading.CancellationToken cancellationToken)
137 throw new NotSupportedException(
"NextResultAsync");
This is an IDataReader that 'fixes' any null values before they are returned to our business code.
IDataReader DataReader
Get a reference to the underlying data reader object that actually contains the data from the data so...
This is a SqlDataReader that 'fixes' any null values before they are returned to our business code.
Task< bool > NextResultAsync(System.Threading.CancellationToken cancellationToken)
Advances the reader to the next result.
SqlDataReader SqlDataReader
Get a reference to the underlying SqlDataReader if present.
SafeSqlDataReader(IDataReader dataReader)
Initializes the SafeDataReader object to use data from the provided DataReader object.
Task< bool > IsDbNullAsync(int ordinal)
Gets a value indicating whether the column has a null or missing value.
Task< bool > ReadAsync()
Advances to the next record in a recordset.
Task< bool > IsDbNullAsync(int ordinal, System.Threading.CancellationToken cancellationToken)
Gets a value indicating whether the column has a null or missing value.
Task< bool > NextResultAsync()
Advances the reader to the next result.
Task< T > GetFieldValueAsync< T >(int ordinal)
Asynchronously gets the data value as a type.
Task< bool > ReadAsync(System.Threading.CancellationToken cancellationToken)
Advances to the next record in a recordset.