1 type derived from SqlDataReader
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
30
internal sealed class SqlDataReaderSmi :
SqlDataReader
{
3 instantiations of SqlDataReader
System.Data (3)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
4277
ds = new
SqlDataReader
(this, cmdBehavior);
4346
ds = new
SqlDataReader
(this, cmdBehavior);
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
7848
dtcReader = new
SqlDataReader
(null, CommandBehavior.Default);
193 references to SqlDataReader
System.Activities.DurableInstancing (25)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (1)
119
protected override Exception ProcessSqlResult(
SqlDataReader
reader)
System\Activities\DurableInstancing\DeleteWorkflowOwnerAsyncResult.cs (1)
50
protected override Exception ProcessSqlResult(
SqlDataReader
reader)
System\Activities\DurableInstancing\DetectActivatableWorkflowsAsyncResult.cs (1)
59
protected override Exception ProcessSqlResult(
SqlDataReader
reader)
System\Activities\DurableInstancing\DetectRunnableInstancesAsyncResult.cs (1)
63
protected override Exception ProcessSqlResult(
SqlDataReader
reader)
System\Activities\DurableInstancing\ExtendLockAsyncResult.cs (1)
62
protected override Exception ProcessSqlResult(
SqlDataReader
reader)
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (3)
97
protected override Exception ProcessSqlResult(
SqlDataReader
reader)
187
void ReadInstanceMetadataChanges(
SqlDataReader
reader, Dictionary<XName, InstanceValue> instanceMetadata)
224
void ReadKeyData(
SqlDataReader
reader, Dictionary<Guid, IDictionary<XName, InstanceValue>> associatedInstanceKeys,
System\Activities\DurableInstancing\QueryActivatableWorkflowAsyncResult.cs (1)
35
protected override Exception ProcessSqlResult(
SqlDataReader
reader)
System\Activities\DurableInstancing\RecoverInstanceLocksAsyncResult.cs (1)
58
protected override Exception ProcessSqlResult(
SqlDataReader
reader)
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (1)
134
protected override Exception ProcessSqlResult(
SqlDataReader
reader)
System\Activities\DurableInstancing\SqlCommandAsyncResult.cs (2)
57
SqlDataReader
sqlDataReader;
83
public static
SqlDataReader
End(IAsyncResult result)
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreAsyncResult.cs (2)
130
protected abstract Exception ProcessSqlResult(
SqlDataReader
reader);
195
using (
SqlDataReader
reader = SqlCommandAsyncResult.End(result))
System\Activities\DurableInstancing\StoreUtilities.cs (5)
20
public static Exception CheckRemainingResultSetForErrors(XName commandName,
SqlDataReader
reader)
33
public static Exception CheckResult(XName commandName,
SqlDataReader
reader)
53
public static Exception GetError(XName commandName, CommandResult result,
SqlDataReader
reader)
110
public static Exception GetNextResultSet(XName commandName,
SqlDataReader
reader)
186
static Dictionary<XName, object> ReadLockOwnerMetadata(
SqlDataReader
reader)
System\Activities\DurableInstancing\TestVersionAndRunAsyncResult.cs (3)
71
protected override Exception ProcessSqlResult(
SqlDataReader
reader)
140
static Version GetVersion(
SqlDataReader
reader)
153
static bool TryGetInt(
SqlDataReader
reader, int column, out int result)
System\Activities\DurableInstancing\TryLoadRunnableWorkflowAsyncResult.cs (1)
55
protected override Exception ProcessSqlResult(
SqlDataReader
reader)
System\Activities\DurableInstancing\UnlockInstanceAsyncResult.cs (1)
51
protected override Exception ProcessSqlResult(
SqlDataReader
reader)
System.Data (107)
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (1)
118
public void Send(
SqlDataReader
reader ) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (11)
1721
internal static void FillCompatibleITypedSettersFromReader( SmiEventSink_Default sink, ITypedSettersV3 setters, SmiMetaData[] metaData,
SqlDataReader
reader ) {
1877
SqlDataReader
sqlReader = reader as
SqlDataReader
;
1950
SqlDataReader
sqlReader = reader as
SqlDataReader
;
1961
SqlDataReader
sqlReader = reader as
SqlDataReader
;
1998
SqlDataReader
sqlReader = reader as
SqlDataReader
;
2010
SqlDataReader
sqlReader = reader as
SqlDataReader
;
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (5)
230
private
SqlDataReader
_SqlDataReaderRowSource;
1478
_SqlDataReaderRowSource = reader as
SqlDataReader
;
1507
_SqlDataReaderRowSource = _rowSource as
SqlDataReader
;
1661
_SqlDataReaderRowSource = reader as
SqlDataReader
;
1693
_SqlDataReaderRowSource = _rowSource as
SqlDataReader
;
fx\src\data\System\Data\SqlClient\SqlCommand.cs (46)
171
private
SqlDataReader
_cachedAsyncReader = null;
179
internal
SqlDataReader
CachedAsyncReader {
233
internal void SetAsyncReaderState (
SqlDataReader
ds, RunBehavior runBehavior, string optionSettings) {
1068
SqlDataReader
reader = connection.FindLiveReader(this);
1141
SqlDataReader
ds;
1158
private object CompleteExecuteScalar(
SqlDataReader
ds, bool returnSqlValue) {
1560
SqlDataReader
reader = CompleteAsyncExecuteReader(isInternal);
1658
SqlDataReader
reader = RunExecuteReader(0, RunBehavior.UntilDone, false, methodName, completion, timeout, out task, out usedCache, asyncWrite, inRetry);
1710
SqlDataReader
ds;
1923
private XmlReader CompleteXmlReader(
SqlDataReader
ds) {
1965
new public
SqlDataReader
ExecuteReader() {
1980
new public
SqlDataReader
ExecuteReader(CommandBehavior behavior) {
2004
internal
SqlDataReader
ExecuteReader(CommandBehavior behavior, string method) {
2030
SqlDataReader
result = RunExecuteReader(behavior, RunBehavior.ReturnImmediately, true, method);
2063
public
SqlDataReader
EndExecuteReader(IAsyncResult asyncResult) {
2072
private
SqlDataReader
EndExecuteReaderAsync(IAsyncResult asyncResult) {
2097
private
SqlDataReader
EndExecuteReaderInternal(IAsyncResult asyncResult) {
2103
SqlDataReader
result = InternalEndExecuteReader(asyncResult, ADP.EndExecuteReader, isInternal: false);
2354
private
SqlDataReader
InternalEndExecuteReader(IAsyncResult asyncResult, string endMethod, bool isInternal) {
2380
SqlDataReader
reader = CompleteAsyncExecuteReader(isInternal);
2457
new public Task<
SqlDataReader
> ExecuteReaderAsync() {
2461
new public Task<
SqlDataReader
> ExecuteReaderAsync(CommandBehavior behavior) {
2465
new public Task<
SqlDataReader
> ExecuteReaderAsync(CancellationToken cancellationToken) {
2469
new public Task<
SqlDataReader
> ExecuteReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) {
2474
TaskCompletionSource<
SqlDataReader
> source = new TaskCompletionSource<
SqlDataReader
>();
2485
Task<
SqlDataReader
> returnedTask = source.Task;
2489
Task<
SqlDataReader
>.Factory.FromAsync(BeginExecuteReaderAsync, EndExecuteReaderAsync, behavior, null).ContinueWith((t) => {
2523
SqlDataReader
reader = executeTask.Result;
2809
SqlDataReader
r = null;
3244
SqlDataReader
describeParameterEncryptionDataReader) {
3285
SqlDataReader
describeParameterEncryptionDataReader = null;
3570
private
SqlDataReader
TryFetchInputParameterEncryptionInfo(int timeout,
3810
private void ReadDescribeEncryptionParameterResults(
SqlDataReader
ds, ReadOnlyDictionary<_SqlRPC, _SqlRPC> describeParameterEncryptionRpcOriginalRpcMap) {
4096
internal
SqlDataReader
RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, bool returnStream, string method) {
4099
SqlDataReader
reader = RunExecuteReader(cmdBehavior, runBehavior, returnStream, method, completion: null, timeout: CommandTimeout, task: out unused, usedCache: out usedCache);
4105
internal
SqlDataReader
RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, bool returnStream, string method, TaskCompletionSource<object> completion, int timeout, out Task task, out bool usedCache, bool asyncWrite = false, bool inRetry = false) {
4263
private
SqlDataReader
RunExecuteReaderTdsWithTransparentParameterEncryption(CommandBehavior cmdBehavior,
4271
SqlDataReader
ds=null,
4342
private
SqlDataReader
RunExecuteReaderTds( CommandBehavior cmdBehavior, RunBehavior runBehavior, bool returnStream, bool async, int timeout, out Task task, bool asyncWrite, bool inRetry,
SqlDataReader
ds=null, bool describeParameterEncryptionRequest = false) {
4582
private
SqlDataReader
RunExecuteReaderSmi( CommandBehavior cmdBehavior, RunBehavior runBehavior, bool returnStream ) {
4586
SqlDataReader
ds = null;
4657
private
SqlDataReader
CompleteAsyncExecuteReader(bool isInternal = false, bool forDescribeParameterEncryption = false) {
4658
SqlDataReader
ds = cachedAsyncState.CachedAsyncReader; // should not be null
4682
private void FinishExecuteReader(
SqlDataReader
ds, RunBehavior runBehavior, string resetOptionsString, bool isInternal, bool forDescribeParameterEncryption, bool shouldCacheForAlwaysEncrypted=true) {
fx\src\data\System\Data\SqlClient\SqlCommandBuilder.cs (1)
283
using (
SqlDataReader
dataReader = sqlCommand.ExecuteReader(CommandBehavior.SchemaOnly | CommandBehavior.KeyInfo)){
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (3)
318
using (
SqlDataReader
reader = _com.EndExecuteReader(asyncResult)) {
502
private void ProcessNotificationResults(
SqlDataReader
reader)
855
using (
SqlDataReader
reader = _com.ExecuteReader()) {
fx\src\data\System\Data\SqlClient\SqlInternalConnection.cs (2)
660
internal
SqlDataReader
FindLiveReader(SqlCommand command) {
661
SqlDataReader
reader = null;
fx\src\data\System\Data\SqlClient\SqlInternalConnectionSmi.cs (1)
527
SqlDataReader
reader = FindLiveReader(null);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
703
SqlDataReader
reader = null;
fx\src\data\System\Data\SqlClient\SqlParameter.cs (2)
1130
else if (value is
SqlDataReader
) {
1131
fields = new List<MSS.SmiExtendedMetaData>(((
SqlDataReader
)value).GetInternalSmiMetaData());
fx\src\data\System\Data\SqlClient\SqlReferenceCollection.cs (8)
25
Debug.Assert(DataReaderTag != tag || value is
SqlDataReader
, "tag doesn't match object type: SqlDataReader");
36
internal
SqlDataReader
FindLiveReader(SqlCommand command) {
39
return FindItem<
SqlDataReader
>(DataReaderTag, (dataReader) => (!dataReader.IsClosed));
43
return FindItem<
SqlDataReader
>(DataReaderTag, (dataReader) => ((!dataReader.IsClosed) && (command == dataReader.Command)));
57
Debug.Assert(value is
SqlDataReader
, "Incorrect object type");
58
var
rdr = (
SqlDataReader
)value;
74
Debug.Assert(value is
SqlDataReader
|| value is SqlCommand || value is SqlBulkCopy, "SqlReferenceCollection.Remove expected a SqlDataReader or SqlCommand or SqlBulkCopy");
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (3)
11
private
SqlDataReader
_reader; // The SqlDataReader that we are reading data from
17
internal SqlSequentialStream(
SqlDataReader
reader, int columnIndex)
188
var
reader = _reader;
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (3)
12
private
SqlDataReader
_reader; // The SqlDataReader that we are reading data from
21
internal SqlSequentialTextReader(
SqlDataReader
reader, int columnIndex, Encoding encoding)
175
var
reader = _reader;
fx\src\data\System\Data\SqlClient\SqlStream.cs (6)
26
private
SqlDataReader
_reader; // reader we will stream off
36
internal SqlStream(
SqlDataReader
reader, bool addByteOrderMark, bool processAllRows) :
40
internal SqlStream(int columnOrdinal,
SqlDataReader
reader, bool addByteOrderMark , bool processAllRows, bool advanceReader) {
160
private static bool AdvanceToNextRow(
SqlDataReader
reader) {
463
SqlDataReader
_reader;
469
public SqlStreamingXml(int i,
SqlDataReader
reader) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (9)
1734
internal bool RunReliably(RunBehavior runBehavior, SqlCommand cmdHandler,
SqlDataReader
dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) {
1766
internal bool Run(RunBehavior runBehavior, SqlCommand cmdHandler,
SqlDataReader
dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) {
1820
internal bool TryRun(RunBehavior runBehavior, SqlCommand cmdHandler,
SqlDataReader
dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, out bool dataReady) {
2676
private bool TryProcessDone(SqlCommand cmd,
SqlDataReader
reader, ref RunBehavior run, TdsParserStateObject stateObj) {
3781
SqlDataReader
.SharedState sharedState = stateObj._readerState;
4568
private bool TryProcessColInfo(_SqlMetaDataSet columns,
SqlDataReader
reader, TdsParserStateObject stateObj, out _SqlMetaDataSet metaData) {
7646
using (
SqlDataReader
dtcReader = TdsExecuteTransactionManagerRequest(
7691
internal
SqlDataReader
TdsExecuteTransactionManagerRequest(
7845
SqlDataReader
dtcReader = null;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (5)
53
internal
SqlDataReader
.SharedState _readerState; // susbset of SqlDataReader state (if it is the owner) necessary for parsing abandoned results in TDS
364
Debug.Assert(value == null || !_owner.IsAlive || ((value is
SqlDataReader
) && (((
SqlDataReader
)value).Command == _owner.Target)), "Should not be changing the owner of an owned stateObj");
365
SqlDataReader
reader=value as
SqlDataReader
;
System.Data.Entity (5)
System\Data\SqlClient\SqlProviderServices.cs (3)
259
SqlDataReader
underlyingReader = fromReader as
SqlDataReader
;
997
using (
var
reader = command.ExecuteReader())
System\Data\SqlClient\SqlSpatialDataReader.cs (2)
26
private readonly
SqlDataReader
reader;
30
internal SqlSpatialDataReader(
SqlDataReader
underlyingReader)
System.Data.Linq (1)
SqlClient\SqlProvider.cs (1)
418
readerType = typeof(
SqlDataReader
);
System.Web (26)
Cache\SqlCacheDependency.cs (2)
754
SqlDataReader
sqlReader = null;
1682
SqlDataReader
sqlReader = null;
Profile\SqlProfileProvider.cs (2)
158
SqlDataReader
reader = null;
502
SqlDataReader
reader = null;
Security\SQLMembershipProvider.cs (9)
930
SqlDataReader
reader = null;
1018
SqlDataReader
reader = null;
1117
SqlDataReader
reader = null;
1235
SqlDataReader
reader = null;
1373
SqlDataReader
reader = null;
1471
SqlDataReader
reader = null;
1635
SqlDataReader
reader = null;
1715
SqlDataReader
reader = null;
1840
private string GetNullableString(
SqlDataReader
reader, int col)
Security\SQLRoleProvider.cs (6)
174
SqlDataReader
reader = null;
462
SqlDataReader
reader = null;
574
SqlDataReader
reader = null;
629
SqlDataReader
reader = null;
700
SqlDataReader
reader = null;
758
SqlDataReader
reader = null;
State\sqlstateclientmanager.cs (4)
410
SqlDataReader
reader;
912
static
SqlDataReader
SqlExecuteReaderWithRetry(SqlCommand cmd, CommandBehavior cmdBehavior) {
923
SqlDataReader
reader = cmd.ExecuteReader(cmdBehavior);
997
SqlDataReader
reader = null;
UI\WebParts\SqlPersonalizationProvider.cs (3)
76
SqlDataReader
reader = null;
196
SqlDataReader
reader = null;
524
SqlDataReader
reader = null;
System.Web.DataVisualization (6)
Common\General\Chart.cs (6)
505
else if (dataSource is System.Data.SqlClient.
SqlDataReader
)
508
for (int fieldIndex = 0; fieldIndex < ((System.Data.SqlClient.
SqlDataReader
)dataSource).FieldCount; fieldIndex++)
510
if (!usedForYValue || ((System.Data.SqlClient.
SqlDataReader
)dataSource).GetFieldType(fieldIndex) != typeof(string))
512
names.Add(((System.Data.SqlClient.
SqlDataReader
)dataSource).GetName(fieldIndex));
544
System.Data.SqlClient.
SqlDataReader
dataReader = command.ExecuteReader();
665
System.Data.SqlClient.
SqlDataReader
dataReader = command.ExecuteReader();
System.Windows.Forms.DataVisualization (6)
Common\General\Chart.cs (6)
505
else if (dataSource is System.Data.SqlClient.
SqlDataReader
)
508
for (int fieldIndex = 0; fieldIndex < ((System.Data.SqlClient.
SqlDataReader
)dataSource).FieldCount; fieldIndex++)
510
if (!usedForYValue || ((System.Data.SqlClient.
SqlDataReader
)dataSource).GetFieldType(fieldIndex) != typeof(string))
512
names.Add(((System.Data.SqlClient.
SqlDataReader
)dataSource).GetName(fieldIndex));
544
System.Data.SqlClient.
SqlDataReader
dataReader = command.ExecuteReader();
665
System.Data.SqlClient.
SqlDataReader
dataReader = command.ExecuteReader();
System.Workflow.Runtime (13)
Tracking\SqlTrackingQuery.cs (4)
51
SqlDataReader
reader = null;
96
SqlDataReader
reader = null;
122
private SqlTrackingWorkflowInstance BuildInstance(
SqlDataReader
reader)
127
internal static SqlTrackingWorkflowInstance BuildInstance(
SqlDataReader
reader, string connectionString)
Tracking\SqlTrackingWorkflowInstance.cs (9)
26
private delegate void LoadFromReader(
SqlDataReader
reader, object parameter);
200
private void LoadActivityEventsFromReader(
SqlDataReader
reader, object parameter)
335
private void LoadUserEventsFromReader(
SqlDataReader
reader, object parameter)
481
private void LoadWorkflowEventsFromReader(
SqlDataReader
reader, object parameter)
568
private void LoadWorkflowChangeEventArgsFromReader(
SqlDataReader
reader, object parameter)
681
private void LoadDefFromReader(
SqlDataReader
reader, object parameter)
715
private void LoadChangesFromReader(
SqlDataReader
reader, object parameter)
780
private void LoadInvokedWorkflowsFromReader(
SqlDataReader
reader, object parameter)
809
SqlDataReader
reader = null;
System.WorkflowServices (4)
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (4)
620
using (
SqlDataReader
reader = command.ExecuteReader())
881
public override object ProcessReader(
SqlDataReader
reader)
1180
using (
SqlDataReader
reader = this.command.EndExecuteReader(result))
1221
public virtual object ProcessReader(
SqlDataReader
reader)