3 types derived from DbDataReader
System.Data.Common (1)
System\Data\DataTableReader.cs (1)
10public sealed class DataTableReader : DbDataReader
System.Data.Odbc (1)
System\Data\Odbc\OdbcDataReader.cs (1)
16public sealed class OdbcDataReader : DbDataReader
System.Data.OleDb (1)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (1)
186public sealed partial class OleDbDataReader : System.Data.Common.DbDataReader
78 references to DbDataReader
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
UserStoreEncryptPersonalDataTest.cs (2)
127using (var reader = command.ExecuteReader()) 149using (var reader = command.ExecuteReader())
Microsoft.Data.Analysis (3)
DataFrame.IO.cs (3)
182public static DataFrame FromSchema(DbDataReader reader) 199public static async Task<DataFrame> LoadFrom(DbDataReader reader) 223using var reader = await adapter.SelectCommand.ExecuteReaderAsync();
Microsoft.ML.Data (2)
DataLoadSave\Database\DatabaseLoaderCursor.cs (2)
27private DbDataReader _dataReader; 84public DbDataReader DataReader
netstandard (1)
netstandard.cs (1)
459[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbDataReader))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
33[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbDataReader))]
System.Data.Common (65)
System\Data\Common\DbBatch.cs (5)
33public DbDataReader ExecuteReader(CommandBehavior behavior = CommandBehavior.Default) 36protected abstract DbDataReader ExecuteDbDataReader(CommandBehavior behavior); 38public Task<DbDataReader> ExecuteReaderAsync(CancellationToken cancellationToken = default) 41public Task<DbDataReader> ExecuteReaderAsync( 46protected abstract Task<DbDataReader> ExecuteDbDataReaderAsync(
System\Data\Common\DbCommand.cs (11)
107protected abstract DbDataReader ExecuteDbDataReader(CommandBehavior behavior); 111public DbDataReader ExecuteReader() => ExecuteDbDataReader(CommandBehavior.Default); 115public DbDataReader ExecuteReader(CommandBehavior behavior) => ExecuteDbDataReader(behavior); 150public Task<DbDataReader> ExecuteReaderAsync() => 153public Task<DbDataReader> ExecuteReaderAsync(CancellationToken cancellationToken) => 156public Task<DbDataReader> ExecuteReaderAsync(CommandBehavior behavior) => 159public Task<DbDataReader> ExecuteReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) => 162protected virtual Task<DbDataReader> ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) 166return ADP.CreatedTaskWithCancellation<DbDataReader>(); 178return Task.FromResult<DbDataReader>(ExecuteReader(behavior)); 182return Task.FromException<DbDataReader>(e);
System\Data\Common\DBCommandBuilder.cs (1)
650using (DbDataReader dataReader = sourceCommand.ExecuteReader(CommandBehavior.SchemaOnly | CommandBehavior.KeyInfo))
System\Data\Common\DbDataReader.cs (7)
79/// Returns a <see cref="DataTable" /> that describes the column metadata of the ><see cref="DbDataReader" />. 85/// <exception cref="InvalidOperationException">The <see cref="DbDataReader" /> is closed.</exception> 121/// This is the asynchronous version of <see cref="DbDataReaderExtensions.GetColumnSchema(DbDataReader)" />. 125/// <see cref="DbDataReaderExtensions.GetColumnSchema(DbDataReader)" /> call and returns a completed task. 127/// Exceptions thrown by <see cref="DbDataReaderExtensions.GetColumnSchema(DbDataReader)" /> will be 161public DbDataReader GetData(int ordinal) => GetDbDataReader(ordinal); 165protected virtual DbDataReader GetDbDataReader(int ordinal)
System\Data\Common\DbDataReaderExtensions.cs (3)
55public static ReadOnlyCollection<DbColumn> GetColumnSchema(this DbDataReader reader) 66public static bool CanGetColumnSchema(this DbDataReader reader) 71private static ReadOnlyCollection<DbColumn> GetColumnSchemaCompatibility(DbDataReader reader)
System\Data\Common\DbDataRecord.cs (1)
31protected virtual DbDataReader GetDbDataReader(int i)
System\Data\Common\DbDataSource.cs (4)
215protected override DbDataReader ExecuteDbDataReader(CommandBehavior behavior) 240protected override async Task<DbDataReader> ExecuteDbDataReaderAsync( 474protected override DbDataReader ExecuteDbDataReader(CommandBehavior behavior) 499protected override async Task<DbDataReader> ExecuteDbDataReaderAsync(
System\Data\Common\DbEnumerator.cs (2)
40public DbEnumerator(DbDataReader reader) 45public DbEnumerator(DbDataReader reader, bool closeReader)
System\Data\DataReaderExtensions.cs (27)
14public static bool GetBoolean(this DbDataReader reader, string name) 21public static byte GetByte(this DbDataReader reader, string name) 28public static long GetBytes(this DbDataReader reader, string name, long dataOffset, byte[] buffer, int bufferOffset, int length) 35public static char GetChar(this DbDataReader reader, string name) 42public static long GetChars(this DbDataReader reader, string name, long dataOffset, char[] buffer, int bufferOffset, int length) 50public static DbDataReader GetData(this DbDataReader reader, string name) 57public static string GetDataTypeName(this DbDataReader reader, string name) 64public static DateTime GetDateTime(this DbDataReader reader, string name) 71public static decimal GetDecimal(this DbDataReader reader, string name) 78public static double GetDouble(this DbDataReader reader, string name) 85public static Type GetFieldType(this DbDataReader reader, string name) 92public static T GetFieldValue<T>(this DbDataReader reader, string name) 99public static Task<T> GetFieldValueAsync<T>(this DbDataReader reader, string name, CancellationToken cancellationToken = default(CancellationToken)) 106public static float GetFloat(this DbDataReader reader, string name) 113public static Guid GetGuid(this DbDataReader reader, string name) 120public static short GetInt16(this DbDataReader reader, string name) 127public static int GetInt32(this DbDataReader reader, string name) 134public static long GetInt64(this DbDataReader reader, string name) 142public static Type GetProviderSpecificFieldType(this DbDataReader reader, string name) 150public static object GetProviderSpecificValue(this DbDataReader reader, string name) 157public static Stream GetStream(this DbDataReader reader, string name) 164public static string GetString(this DbDataReader reader, string name) 171public static TextReader GetTextReader(this DbDataReader reader, string name) 178public static object GetValue(this DbDataReader reader, string name) 185public static bool IsDBNull(this DbDataReader reader, string name) 192public static Task<bool> IsDBNullAsync(this DbDataReader reader, string name, CancellationToken cancellationToken = default(CancellationToken))
System\Data\ProviderBase\DataReaderContainer.cs (4)
19DbDataReader? providerSpecificDataReader = (dataReader as DbDataReader); 77private readonly DbDataReader _providerSpecificDataReader; 79internal ProviderSpecificDataReader(IDataReader dataReader, DbDataReader dbDataReader) : base(dataReader)
System.Data.Odbc (2)
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (1)
149DbDataReader? reader = null;
System\Data\Odbc\OdbcCommand.cs (1)
539protected override DbDataReader ExecuteDbDataReader(CommandBehavior behavior)
System.Data.OleDb (2)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (2)
49protected override System.Data.Common.DbDataReader ExecuteDbDataReader(System.Data.CommandBehavior behavior) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 208protected override System.Data.Common.DbDataReader GetDbDataReader(int ordinal) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); }