3 writes to _dataCache
System.Data.Odbc (3)
System\Data\Odbc\OdbcDataReader.cs (3)
240
_dataCache
= new DbCache(this, cColsAffected);
371
_dataCache
= null;
1984
_dataCache
= null;
71 references to _dataCache
System.Data.Odbc (71)
System\Data\Odbc\OdbcDataReader.cs (71)
175
if (null ==
_dataCache
)
183
return ((null !=
_dataCache
) ?
_dataCache
._count : 0);
402
if (null !=
_dataCache
)
404
DbSchemaInfo info =
_dataCache
.GetSchema(i);
417
if (null !=
_dataCache
)
419
DbSchemaInfo info =
_dataCache
.GetSchema(i);
427
if (null !=
_dataCache
)
429
DbSchemaInfo info =
_dataCache
.GetSchema(i);
439
if (null ==
_dataCache
)
452
if (null ==
_dataCache
)
531
if (
_dataCache
!.AccessIndex(i) == null)
542
return
_dataCache
[i]!;
558
if (
_dataCache
!.AccessIndex(i) == null)
560
_dataCache
[i] = GetValue(i, GetSqlType(i));
562
return
_dataCache
[i]!;
586
DbSchemaInfo info =
_dataCache
!.GetSchema(i);
635
object? cachedObj =
_dataCache
![i];
670
if (
_dataCache
!.AccessIndex(i) == null)
674
_dataCache
[i] = Buffer.ReadByte(0);
677
return
_dataCache
[i]!;
690
if (
_dataCache
!.AccessIndex(i) == null)
694
_dataCache
[i] = Buffer.ReadChar(0);
697
return
_dataCache
[i]!;
710
if (
_dataCache
!.AccessIndex(i) == null)
714
_dataCache
[i] = Buffer.ReadInt16(0);
717
return
_dataCache
[i]!;
730
if (
_dataCache
!.AccessIndex(i) == null)
734
_dataCache
[i] = Buffer.ReadInt32(0);
737
return
_dataCache
[i]!;
757
if (
_dataCache
!.AccessIndex(i) == null)
762
_dataCache
[i] = long.Parse(value, CultureInfo.InvariantCulture);
765
return
_dataCache
[i]!;
778
if (
_dataCache
!.AccessIndex(i) == null)
782
_dataCache
[i] = Buffer.MarshalToManaged(0, ODBC32.SQL_C.BIT, -1);
785
return
_dataCache
[i]!;
798
if (
_dataCache
!.AccessIndex(i) == null)
802
_dataCache
[i] = Buffer.ReadSingle(0);
805
return
_dataCache
[i]!;
819
if (
_dataCache
!.AccessIndex(i) == null)
823
_dataCache
[i] = Buffer.MarshalToManaged(0, ODBC32.SQL_C.TYPE_DATE, -1);
826
return
_dataCache
[i]!;
840
if (
_dataCache
!.AccessIndex(i) == null)
844
_dataCache
[i] = Buffer.MarshalToManaged(0, ODBC32.SQL_C.TYPE_TIMESTAMP, -1);
847
return
_dataCache
[i]!;
868
if (
_dataCache
!.AccessIndex(i) == null)
876
_dataCache
[i] = decimal.Parse(s, System.Globalization.CultureInfo.InvariantCulture);
880
_dataCache
[i] = s;
885
return
_dataCache
[i]!;
898
if (
_dataCache
!.AccessIndex(i) == null)
902
_dataCache
[i] = Buffer.ReadDouble(0);
905
return
_dataCache
[i]!;
919
if (
_dataCache
!.AccessIndex(i) == null)
923
_dataCache
[i] = Buffer.ReadGuid(0);
926
return
_dataCache
[i]!;
940
if (
_dataCache
!.AccessIndex(i) == null)
973
_dataCache
[i] = strdata;
1030
_dataCache
[i] = builder.ToString();
1033
return
_dataCache
[i]!;
1047
if (
_dataCache
!.AccessIndex(i) == null)
1051
_dataCache
[i] = Buffer.MarshalToManaged(0, ODBC32.SQL_C.TYPE_TIME, -1);
1054
return
_dataCache
[i]!;
1121
cachedObj = (string?)
_dataCache
![i];
1123
cachedObj = (byte[]?)
_dataCache
![i];
1460
if (
_dataCache
!.AccessIndex(i) == null)
1516
_dataCache
[i] = rgBytes;
1519
return
_dataCache
[i]!;
1728
Debug.Assert(
_dataCache
== null || !Convert.IsDBNull(
_dataCache
[i]), "Cannot call GetData without checking for cache first!");
1790
_dataCache
![i] = DBNull.Value;
1864
_dataCache
!.FlushValues();