7 types derived from DbDataReader
System.Data (4)
fx\src\data\System\Data\DataTableReader.cs (1)
17
public sealed class DataTableReader :
DbDataReader
{
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (1)
25
public sealed class OdbcDataReader :
DbDataReader
{
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (1)
25
public sealed class OleDbDataReader :
DbDataReader
{
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
30
public class SqlDataReader :
DbDataReader
, IDataReader {
System.Data.Entity (2)
System\Data\EntityClient\EntityDataReader.cs (1)
23
public class EntityDataReader :
DbDataReader
, IExtendedDataRecord
System\Data\Query\ResultAssembly\BridgeDataReader.cs (1)
26
internal sealed class BridgeDataReader :
DbDataReader
, IExtendedDataRecord {
System.Data.Linq (1)
SqlClient\Reader\ObjectReaderCompiler.cs (1)
2898
class Rereader :
DbDataReader
, IDisposable {
192 references to DbDataReader
System.Data (49)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
131
ht.Add( typeof(
DbDataReader
), ExtendedClrTypeCode.DbDataReader );
380
else if (value is
DbDataReader
) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (7)
1702
SetDbDataReader_Unchecked(sink, setters, ordinal, metaData, (
DbDataReader
)value);
1847
internal static void FillCompatibleSettersFromReader(SmiEventSink_Default sink, SmiTypedGetterSetter setters, IList<SmiExtendedMetaData> metaData,
DbDataReader
reader) {
2533
private static void SetBytes_FromReader(SmiEventSink_Default sink, SmiTypedGetterSetter setters, int ordinal, SmiMetaData metaData,
DbDataReader
reader, int offset) {
2623
private static void SetCharsOrString_FromReader(SmiEventSink_Default sink, SmiTypedGetterSetter setters, int ordinal, SmiMetaData metaData,
DbDataReader
reader, int offset) {
2641
private static void SetChars_FromReader(SmiEventSink_Default sink, SmiTypedGetterSetter setters, int ordinal, SmiMetaData metaData,
DbDataReader
reader, int offset) {
2676
private static void SetString_FromReader(SmiEventSink_Default sink, SmiTypedGetterSetter setters, int ordinal, SmiMetaData metaData,
DbDataReader
reader, int offset) {
3687
DbDataReader
value
fx\src\data\System\Data\Common\DBCommand.cs (15)
184
abstract protected
DbDataReader
ExecuteDbDataReader(CommandBehavior behavior);
188
public
DbDataReader
ExecuteReader() {
189
return (
DbDataReader
)ExecuteDbDataReader(CommandBehavior.Default);
193
return (
DbDataReader
)ExecuteDbDataReader(CommandBehavior.Default);
196
public
DbDataReader
ExecuteReader(CommandBehavior behavior){
197
return (
DbDataReader
)ExecuteDbDataReader(behavior);
201
return (
DbDataReader
)ExecuteDbDataReader(behavior);
228
public Task<
DbDataReader
> ExecuteReaderAsync() {
232
public Task<
DbDataReader
> ExecuteReaderAsync(CancellationToken cancellationToken) {
236
public Task<
DbDataReader
> ExecuteReaderAsync(CommandBehavior behavior) {
240
public Task<
DbDataReader
> ExecuteReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) {
244
protected virtual Task<
DbDataReader
> ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) {
246
return ADP.CreatedTaskWithCancellation<
DbDataReader
>();
255
return Task.FromResult<
DbDataReader
>(ExecuteReader(behavior));
259
return ADP.CreatedTaskWithException<
DbDataReader
>(e);
fx\src\data\System\Data\Common\DbDataReader.cs (2)
107
public
DbDataReader
GetData(int ordinal) {
115
virtual protected
DbDataReader
GetDbDataReader(int ordinal) {
fx\src\data\System\Data\Common\dbdatarecord.cs (1)
44
virtual protected
DbDataReader
GetDbDataReader(int i) {
fx\src\data\System\Data\Common\dbenumerator.cs (2)
43
public DbEnumerator(
DbDataReader
reader)
47
public DbEnumerator(
DbDataReader
reader, bool closeReader)
fx\src\data\System\Data\Odbc\OdbcCommand.cs (1)
496
override protected
DbDataReader
ExecuteDbDataReader(CommandBehavior behavior) {
fx\src\data\System\Data\OleDb\OleDbCommand.cs (1)
579
override protected
DbDataReader
ExecuteDbDataReader(CommandBehavior behavior) {
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (1)
859
override protected
DbDataReader
GetDbDataReader(int ordinal) {
fx\src\data\System\Data\ProviderBase\DataReaderContainer.cs (4)
22
DbDataReader
providerSpecificDataReader = (dataReader as
DbDataReader
);
69
private
DbDataReader
_providerSpecificDataReader;
71
internal ProviderSpecificDataReader(IDataReader dataReader,
DbDataReader
dbDataReader) : base(dataReader) {
fx\src\data\System\Data\ProviderBase\DbMetaDataFactory.cs (1)
169
DbDataReader
reader = null;
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (6)
232
private
DbDataReader
_DbDataReaderRowSource;
1462
public void WriteToServer(
DbDataReader
reader) {
1511
_DbDataReaderRowSource = _rowSource as
DbDataReader
;
1642
public Task WriteToServerAsync(
DbDataReader
reader) {
1645
public Task WriteToServerAsync(
DbDataReader
reader, CancellationToken cancellationToken) {
1694
_DbDataReaderRowSource = _rowSource as
DbDataReader
;
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
1960
override protected
DbDataReader
ExecuteDbDataReader(CommandBehavior behavior) {
2448
protected override Task<
DbDataReader
> ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) {
2449
return ExecuteReaderAsync(behavior, cancellationToken).ContinueWith<
DbDataReader
>((result) => {
fx\src\data\System\Data\SqlClient\SqlParameter.cs (3)
960
value is
DbDataReader
||
1269
else if (value is
DbDataReader
) {
1270
DataTable schema = ((
DbDataReader
)value).GetSchemaTable();
System.Data.Entity (100)
System\Data\Common\DataRecord.cs (1)
275
public
DbDataReader
GetDataReader(int i)
System\Data\Common\DbProviderServices.cs (2)
188
public DbSpatialDataReader GetSpatialDataReader(
DbDataReader
fromReader, string manifestToken)
241
protected virtual DbSpatialDataReader GetDbSpatialDataReader(
DbDataReader
fromReader, string manifestToken)
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (8)
310
private static readonly MethodInfo s_userMaterializationFuncInvokeMethod = typeof(Func<
DbDataReader
, object[], object>).GetMethod("Invoke");
312
private ParameterExpression _reader = Expression.Parameter(typeof(
DbDataReader
), "reader");
372
var userMaterializationFunc = Expression.Lambda<Func<
DbDataReader
, object[], object>>(nex, _reader, _values).Compile();
400
&& typeof(
DbDataReader
).IsAssignableFrom(test.Object.Type)
403
if (ifFalse != null && (ifFalse.Object != null && typeof(
DbDataReader
).IsAssignableFrom(ifFalse.Object.Type) || IsUserExpressionMethod(ifFalse.Method)))
426
if (typeof(
DbDataReader
).IsAssignableFrom(m.Type))
448
var userMaterializationFunc = Expression.Lambda<Func<
DbDataReader
, object[], object>>(newMemberInit, _reader, _values).Compile();
514
if (m.Object != null && typeof(
DbDataReader
).IsAssignableFrom(m.Object.Type))
System\Data\Common\Internal\Materialization\Shaper.cs (14)
29
internal Shaper(
DbDataReader
reader, ObjectContext context, MetadataWorkspace workspace, MergeOption mergeOption, int stateCount)
71
public readonly
DbDataReader
Reader;
810
private readonly Func<
DbDataReader
, int, T> getTypedValue;
811
private readonly Func<
DbDataReader
, int, object> getUntypedValue;
813
protected ErrorHandlingValueReader(Func<
DbDataReader
, int, T> typedValueAccessor, Func<
DbDataReader
, int, object> untypedValueAccessor)
824
private static T GetTypedValueDefault(
DbDataReader
reader, int ordinal)
843
private static object GetUntypedValueDefault(
DbDataReader
reader, int ordinal)
853
internal T GetValue(
DbDataReader
reader, int ordinal)
916
internal ColumnErrorHandlingValueReader(Func<
DbDataReader
, int, TColumn> typedAccessor, Func<
DbDataReader
, int, object> untypedAccessor)
944
internal PropertyErrorHandlingValueReader(string propertyName, string typeName, Func<
DbDataReader
, int, TProperty> typedAccessor, Func<
DbDataReader
, int, object> untypedAccessor)
1055
internal Shaper(
DbDataReader
reader, ObjectContext context, MetadataWorkspace workspace, MergeOption mergeOption, int stateCount, CoordinatorFactory<T> rootCoordinatorFactory, Action checkPermissions, bool readerOwned)
System\Data\Common\Internal\Materialization\ShaperFactory.cs (1)
67
internal Shaper<T> Create(
DbDataReader
reader, ObjectContext context, MetadataWorkspace workspace, MergeOption mergeOption, bool readerOwned)
System\Data\Common\Internal\Materialization\Translator.cs (13)
537
private static readonly MethodInfo DbDataReader_GetValue = typeof(
DbDataReader
).GetMethod("GetValue");
538
private static readonly MethodInfo DbDataReader_GetString = typeof(
DbDataReader
).GetMethod("GetString");
539
private static readonly MethodInfo DbDataReader_GetInt16 = typeof(
DbDataReader
).GetMethod("GetInt16");
540
private static readonly MethodInfo DbDataReader_GetInt32 = typeof(
DbDataReader
).GetMethod("GetInt32");
541
private static readonly MethodInfo DbDataReader_GetInt64 = typeof(
DbDataReader
).GetMethod("GetInt64");
542
private static readonly MethodInfo DbDataReader_GetBoolean = typeof(
DbDataReader
).GetMethod("GetBoolean");
543
private static readonly MethodInfo DbDataReader_GetDecimal = typeof(
DbDataReader
).GetMethod("GetDecimal");
544
private static readonly MethodInfo DbDataReader_GetFloat = typeof(
DbDataReader
).GetMethod("GetFloat");
545
private static readonly MethodInfo DbDataReader_GetDouble = typeof(
DbDataReader
).GetMethod("GetDouble");
546
private static readonly MethodInfo DbDataReader_GetDateTime = typeof(
DbDataReader
).GetMethod("GetDateTime");
547
private static readonly MethodInfo DbDataReader_GetGuid = typeof(
DbDataReader
).GetMethod("GetGuid");
548
private static readonly MethodInfo DbDataReader_GetByte = typeof(
DbDataReader
).GetMethod("GetByte");
549
private static readonly MethodInfo DbDataReader_IsDBNull = typeof(
DbDataReader
).GetMethod("IsDBNull");
System\Data\Common\Utils\CommandHelper.cs (1)
28
internal static void ConsumeReader(
DbDataReader
reader)
System\Data\EntityClient\EntityCommand.cs (3)
45
private
DbDataReader
_dataReader;
472
protected override
DbDataReader
ExecuteDbDataReader(CommandBehavior behavior)
509
private T_Result ExecuteScalar<T_Result>(Func<
DbDataReader
, T_Result> resultSelector)
System\Data\EntityClient\EntityCommandDefinition.cs (11)
290
internal ColumnMap CreateColumnMap(
DbDataReader
storeDataReader)
298
internal ColumnMap CreateColumnMap(
DbDataReader
storeDataReader, int resultSetIndex)
369
internal
DbDataReader
Execute(EntityCommand entityCommand, CommandBehavior behavior) {
374
DbDataReader
storeDataReader = ExecuteStoreCommands(entityCommand, behavior);
375
DbDataReader
result = null;
401
private IEnumerable<ColumnMap> GetNextResultColumnMaps(
DbDataReader
storeDataReader)
414
internal
DbDataReader
ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
474
DbDataReader
reader = null;
570
ColumnMap CreateColumnMap(
DbDataReader
reader);
586
ColumnMap IColumnMapGenerator.CreateColumnMap(
DbDataReader
reader) {
611
ColumnMap IColumnMapGenerator.CreateColumnMap(
DbDataReader
reader)
System\Data\EntityClient\EntityDataReader.cs (4)
32
private
DbDataReader
_storeDataReader;
40
internal EntityDataReader(EntityCommand command,
DbDataReader
storeDataReader, CommandBehavior behavior)
275
protected override
DbDataReader
GetDbDataReader(int ordinal)
518
public
DbDataReader
GetDataReader(int i)
System\Data\IExtendedDataRecord.cs (1)
33
DbDataReader
GetDataReader(int i);
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (1)
116
using (
DbDataReader
reader = command.ExecuteReader(CommandBehavior.SequentialAccess))
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (2)
243
using (
DbDataReader
reader = m_dbCommand.ExecuteReader(CommandBehavior.SequentialAccess))
321
private int GetColumnOrdinal(UpdateTranslator translator,
DbDataReader
reader, string columnName)
System\Data\Objects\Internal\ObjectQueryExecutionPlan.cs (1)
162
DbDataReader
storeReader = null;
System\Data\Objects\NextResultGenerator.cs (1)
39
internal ObjectResult<TElement> GetNextResult<TElement>(
DbDataReader
storeReader)
System\Data\Objects\ObjectContext.cs (6)
2681
DbDataReader
storeReader;
2702
internal ObjectResult<TElement> MaterializedDataRecord<TElement>(EntityCommand entityCommand,
DbDataReader
storeReader, int resultSetIndex, ReadOnlyMetadataCollection<EntitySet> entitySets, EdmType[] edmTypes, MergeOption mergeOption)
3076
DbDataReader
reader = null;
3111
public ObjectResult<TElement> Translate<TElement>(
DbDataReader
reader)
3135
public ObjectResult<TEntity> Translate<TEntity>(
DbDataReader
reader, string entitySetName, MergeOption mergeOption)
3152
private ObjectResult<TElement> InternalTranslate<TElement>(
DbDataReader
reader, string entitySetName, MergeOption mergeOption, bool readerOwned)
System\Data\Objects\ObjectResult_TResultType.cs (2)
35
private
DbDataReader
_reader;
91
DbDataReader
reader = _reader;
System\Data\Objects\ObjectStateEntryBaseUpdatableDataRecord.cs (2)
208
override protected
DbDataReader
GetDbDataReader(int ordinal)
558
public
DbDataReader
GetDataReader(int i)
System\Data\Objects\ObjectStateEntryDbDataRecord.cs (2)
166
override protected
DbDataReader
GetDbDataReader(int ordinal)
272
public
DbDataReader
GetDataReader(int i)
System\Data\Query\InternalTrees\ColumnMapFactory.cs (9)
33
internal static CollectionColumnMap CreateFunctionImportStructuralTypeColumnMap(
DbDataReader
storeDataReader, FunctionImportMappingNonComposable mapping, int resultSetIndex, EntitySet entitySet, StructuralType baseStructuralType)
85
internal static CollectionColumnMap CreateColumnMapFromReaderAndType(
DbDataReader
storeDataReader, EdmType edmType, EntitySet entitySet, Dictionary<string, FunctionImportReturnTypeStructuralTypeColumnRenameMapping> renameList)
128
internal static CollectionColumnMap CreateColumnMapFromReaderAndClrType(
DbDataReader
reader, Type type, MetadataWorkspace workspace)
215
DbDataReader
storeDataReader, EdmType edmType, EntitySet entitySet,
268
private static ColumnMap[] GetColumnMapsForType(
DbDataReader
storeDataReader, EdmType edmType, Dictionary<string, FunctionImportReturnTypeStructuralTypeColumnRenameMapping> renameList)
291
private static ScalarColumnMap[] CreateDiscriminatorColumnMaps(
DbDataReader
storeDataReader, FunctionImportMappingNonComposable mapping, int resultIndex)
319
private static int GetMemberOrdinalFromReader(
DbDataReader
storeDataReader, EdmMember member, EdmType currentType, Dictionary<string, FunctionImportReturnTypeStructuralTypeColumnRenameMapping> renameList)
352
private static int GetDiscriminatorOrdinalFromReader(
DbDataReader
storeDataReader, string columnName, EdmFunction functionImport)
370
private static bool TryGetColumnOrdinalFromReader(
DbDataReader
storeDataReader, string columnName, out int ordinal)
System\Data\Query\ResultAssembly\BridgeDataReader.cs (9)
125
static internal
DbDataReader
Create(
DbDataReader
storeDataReader, ColumnMap columnMap, MetadataWorkspace workspace, IEnumerable<ColumnMap> nextResultColumnMaps) {
131
DbDataReader
result = new BridgeDataReader(shaperInfo.Key, shaperInfo.Value, /*depth:*/ 0, GetNextResultShaperInfo(storeDataReader, workspace, nextResultColumnMaps).GetEnumerator());
135
private static KeyValuePair<Shaper<RecordState>, CoordinatorFactory<RecordState>> CreateShaperInfo(
DbDataReader
storeDataReader, ColumnMap columnMap, MetadataWorkspace workspace)
150
private static IEnumerable<KeyValuePair<Shaper<RecordState>, CoordinatorFactory<RecordState>>> GetNextResultShaperInfo(
DbDataReader
storeDataReader, MetadataWorkspace workspace, IEnumerable<ColumnMap> nextResultColumnMaps)
204
result = typeof(
DbDataReader
);
797
override protected
DbDataReader
GetDbDataReader(int ordinal) {
798
return (
DbDataReader
)DataRecord.GetData(ordinal);
815
public
DbDataReader
GetDataReader(int ordinal) {
System\Data\Query\ResultAssembly\BridgeDataRecord.cs (3)
699
override protected
DbDataReader
GetDbDataReader(int ordinal) {
700
return (
DbDataReader
)GetValue(ordinal);
717
public
DbDataReader
GetDataReader(int ordinal) {
System\Data\Spatial\SpatialHelpers.cs (2)
17
internal static object GetSpatialValue(MetadataWorkspace workspace,
DbDataReader
reader, TypeUsage columnType, int columnOrdinal)
31
internal static DbSpatialDataReader CreateSpatialDataReader(MetadataWorkspace workspace,
DbDataReader
reader)
System\Data\SqlClient\SqlProviderServices.cs (1)
253
protected override Spatial.DbSpatialDataReader GetDbSpatialDataReader(
DbDataReader
fromReader, string versionHint)
System.Data.Entity.Design (2)
System\Data\Entity\Design\SSDLGenerator\EntityStoreSchemaGeneratorDatabaseSchemaLoader.cs (1)
172
using (
DbDataReader
reader = command.ExecuteReader(CommandBehavior.SequentialAccess))
System\Data\Entity\Design\SSDLGenerator\FunctionDetailsReader.cs (1)
25
private
DbDataReader
_reader;
System.Data.Linq (29)
DataContext.cs (3)
888
public IEnumerable<TResult> Translate<TResult>(
DbDataReader
reader) {
899
public IEnumerable Translate(Type elementType,
DbDataReader
reader) {
915
public IMultipleResults Translate(
DbDataReader
reader) {
Provider\IProvider.cs (2)
93
IEnumerable Translate(Type elementType,
DbDataReader
reader);
101
IMultipleResults Translate(
DbDataReader
reader);
SqlClient\Reader\ObjectReader.cs (2)
33
IObjectReader Create(
DbDataReader
reader, bool disposeReader, IReaderProvider provider, object[] parentArgs, object[] userArgs, ICompiledSubQuery[] subQueries);
39
IObjectReaderSession CreateSession(
DbDataReader
reader, IReaderProvider provider, object[] parentArgs, object[] userArgs, ICompiledSubQuery[] subQueries);
SqlClient\Reader\ObjectReaderCompiler.cs (16)
36
public abstract class ObjectMaterializer<TDataReader> where TDataReader :
DbDataReader
{
50
public
DbDataReader
BufferReader;
160
this.miBRisDBNull = typeof(
DbDataReader
).GetMethod("IsDBNull", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
258
public IObjectReaderSession CreateSession(
DbDataReader
reader, IReaderProvider provider, object[] parentArgs, object[] userArgs, ICompiledSubQuery[] subQueries) {
1843
MethodInfo bufferMethod = this.GetReaderMethod(typeof(
DbDataReader
), rType);
2433
where TDataReader :
DbDataReader
{
2451
public IObjectReader Create(
DbDataReader
dataReader, bool disposeDataReader, IReaderProvider provider, object[] parentArgs, object[] userArgs, ICompiledSubQuery[] subQueries) {
2467
where TDataReader :
DbDataReader
{
2591
DbDataReader
reader = null;
2626
where TDataReader :
DbDataReader
{
2726
where TDataReader :
DbDataReader
{
2730
List<
DbDataReader
> buffer;
2792
internal
DbDataReader
GetNextBufferedReader() {
2812
this.buffer = new List<
DbDataReader
>();
2900
DbDataReader
reader;
2903
internal Rereader(
DbDataReader
reader, bool hasCurrentRow, string[] names) {
SqlClient\SqlProvider.cs (6)
421
readerType = typeof(
DbDataReader
);
1048
DbDataReader
reader = cmd.ExecuteReader();
1101
DbDataReader
reader = cmd.ExecuteReader();
1125
DbDataReader
reader = cmd.ExecuteReader();
1213
IEnumerable IProvider.Translate(Type elementType,
DbDataReader
reader) {
1230
IMultipleResults IProvider.Translate(
DbDataReader
reader) {
System.Web.Extensions (2)
ClientServices\Providers\ClientRoleProvider.cs (1)
342
using (
DbDataReader
reader = cmd.ExecuteReader()) {
ClientServices\Providers\ClientSettingsProvider.cs (1)
692
using(
DbDataReader
reader = cmd.ExecuteReader()) {
System.Workflow.Runtime (10)
Hosting\SqlWorkflowPersistenceService.cs (4)
246
DbDataReader
dr = null;
359
DbDataReader
dr = null;
600
DbDataReader
dr = null;
645
DbDataReader
dr = null;
Tracking\SqlTrackingService.cs (6)
281
DbDataReader
reader = null;
359
DbDataReader
reader = null;
481
private
DbDataReader
ExecuteReaderRetried(DbCommand command, CommandBehavior behavior)
483
DbDataReader
reader = null;
627
DbDataReader
reader = null;
1218
DbDataReader
reader = null;