3 writes to dataCache
System.Data (3)
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (3)
211
this.
dataCache
= new DbCache(this, cColsAffected);
317
this.
dataCache
= null;
1745
this.
dataCache
= null;
71 references to dataCache
System.Data (71)
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (71)
157
if (null == this.
dataCache
) {
164
return ((null != this.
dataCache
) ? this.
dataCache
._count : 0);
344
if (null != this.
dataCache
) {
345
DbSchemaInfo info = this.
dataCache
.GetSchema(i);
359
if (null != this.
dataCache
) {
360
DbSchemaInfo info = this.
dataCache
.GetSchema(i);
370
if (null != this.
dataCache
) {
371
DbSchemaInfo info = this.
dataCache
.GetSchema(i);
385
if (null == this.
dataCache
) {
395
if (null == this.
dataCache
) {
470
if(this.
dataCache
.AccessIndex(i) == null) {
480
return this.
dataCache
[i];
494
if(
dataCache
.AccessIndex(i) == null) {
495
dataCache
[i] = GetValue(i, GetSqlType(i));
497
return
dataCache
[i];
517
DbSchemaInfo info = this.
dataCache
.GetSchema(i);
562
object cachedObj = this.
dataCache
[i];
593
if(this.
dataCache
.AccessIndex(i) == null) {
595
this.
dataCache
[i] = Buffer.ReadByte(0);
598
return this.
dataCache
[i];
608
if(this.
dataCache
.AccessIndex(i) == null) {
610
this.
dataCache
[i] = Buffer.ReadChar(0);
613
return this.
dataCache
[i];
623
if(this.
dataCache
.AccessIndex(i) == null) {
625
this.
dataCache
[i] = Buffer.ReadInt16(0);
628
return this.
dataCache
[i];
638
if(this.
dataCache
.AccessIndex(i) == null) {
640
this.
dataCache
[i] = Buffer.ReadInt32(0);
643
return this.
dataCache
[i];
660
if(this.
dataCache
.AccessIndex(i) == null) {
663
this.
dataCache
[i] = Int64.Parse(value, CultureInfo.InvariantCulture);
666
return this.
dataCache
[i];
676
if(this.
dataCache
.AccessIndex(i) == null) {
678
this.
dataCache
[i] = Buffer.MarshalToManaged(0, ODBC32.SQL_C.BIT, -1);
681
return this.
dataCache
[i];
691
if(this.
dataCache
.AccessIndex(i) == null) {
693
this.
dataCache
[i] = Buffer.ReadSingle(0);
696
return this.
dataCache
[i];
707
if(this.
dataCache
.AccessIndex(i) == null) {
709
this.
dataCache
[i] = Buffer.MarshalToManaged(0, ODBC32.SQL_C.TYPE_DATE, -1);
712
return this.
dataCache
[i];
723
if(this.
dataCache
.AccessIndex(i) == null) {
725
this.
dataCache
[i] = Buffer.MarshalToManaged(0, ODBC32.SQL_C.TYPE_TIMESTAMP, -1);
728
return this.
dataCache
[i];
746
if(this.
dataCache
.AccessIndex(i) == null) {
751
this.
dataCache
[i] = Decimal.Parse(s, System.Globalization.CultureInfo.InvariantCulture);
754
this.
dataCache
[i] = s;
759
return this.
dataCache
[i];
769
if(this.
dataCache
.AccessIndex(i) == null) {
771
this.
dataCache
[i] = Buffer.ReadDouble(0);
774
return this.
dataCache
[i];
785
if(this.
dataCache
.AccessIndex(i) == null) {
787
this.
dataCache
[i] = Buffer.ReadGuid(0);
790
return this.
dataCache
[i];
801
if(this.
dataCache
.AccessIndex(i) == null) {
831
this.
dataCache
[i] = strdata;
883
this.
dataCache
[i] = builder.ToString();
886
return this.
dataCache
[i];
897
if(this.
dataCache
.AccessIndex(i) == null) {
899
this.
dataCache
[i] = Buffer.MarshalToManaged(0, ODBC32.SQL_C.TYPE_TIME, -1);
902
return this.
dataCache
[i];
961
cachedObj = (string)this.
dataCache
[i];
963
cachedObj = (byte[])this.
dataCache
[i];
1279
if(this.
dataCache
.AccessIndex(i) == null) {
1328
this.
dataCache
[i] = rgBytes;
1331
return this.
dataCache
[i];
1515
Debug.Assert(this.
dataCache
== null || !Convert.IsDBNull(this.
dataCache
[i]), "Cannot call GetData without checking for cache first!");
1572
this.
dataCache
[i] = DBNull.Value;
1638
this.
dataCache
.FlushValues();