93 references to DataReader
Microsoft.ML.Data (93)
DataLoadSave\Database\DatabaseLoaderCursor.cs (93)
133
if (
DataReader
.Read())
298
return (ref bool value) => value =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetBoolean(columnIndex);
304
return (ref byte value) => value =
DataReader
.GetByte(columnIndex);
310
return (ref DateTime value) => value =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetDateTime(columnIndex);
316
return (ref double value) => value =
DataReader
.IsDBNull(columnIndex) ? double.NaN :
DataReader
.GetDouble(columnIndex);
322
return (ref short value) => value =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetInt16(columnIndex);
328
return (ref int value) => value =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetInt32(columnIndex);
334
return (ref long value) => value =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetInt64(columnIndex);
340
return (ref sbyte value) => value =
DataReader
.IsDBNull(columnIndex) ? default : (sbyte)
DataReader
.GetByte(columnIndex);
346
return (ref float value) => value =
DataReader
.IsDBNull(columnIndex) ? float.NaN :
DataReader
.GetFloat(columnIndex);
352
return (ref ReadOnlyMemory<char> value) => value =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetString(columnIndex).AsMemory();
358
return (ref ushort value) => value =
DataReader
.IsDBNull(columnIndex) ? default : (ushort)
DataReader
.GetInt16(columnIndex);
364
return (ref uint value) => value =
DataReader
.IsDBNull(columnIndex) ? default : (uint)
DataReader
.GetInt32(columnIndex);
370
return (ref ulong value) => value =
DataReader
.IsDBNull(columnIndex) ? default : (ulong)
DataReader
.GetInt64(columnIndex);
389
editor.Values[i] =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetBoolean(columnIndex);
394
var columnIndex =
DataReader
.GetOrdinal(seg.Name);
395
editor.Values[i++] =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetBoolean(columnIndex);
419
editor.Values[i] =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetByte(columnIndex);
424
var columnIndex =
DataReader
.GetOrdinal(seg.Name);
425
editor.Values[i++] =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetByte(columnIndex);
449
editor.Values[i] =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetDateTime(columnIndex);
454
var columnIndex =
DataReader
.GetOrdinal(seg.Name);
455
editor.Values[i++] =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetDateTime(columnIndex);
479
editor.Values[i] =
DataReader
.IsDBNull(columnIndex) ? double.NaN :
DataReader
.GetDouble(columnIndex);
484
var columnIndex =
DataReader
.GetOrdinal(seg.Name);
485
editor.Values[i++] =
DataReader
.IsDBNull(columnIndex) ? double.NaN :
DataReader
.GetDouble(columnIndex);
509
editor.Values[i] =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetInt16(columnIndex);
514
var columnIndex =
DataReader
.GetOrdinal(seg.Name);
515
editor.Values[i++] =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetInt16(columnIndex);
539
editor.Values[i] =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetInt32(columnIndex);
544
var columnIndex =
DataReader
.GetOrdinal(seg.Name);
545
editor.Values[i++] =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetInt32(columnIndex);
569
editor.Values[i] =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetInt64(columnIndex);
574
var columnIndex =
DataReader
.GetOrdinal(seg.Name);
575
editor.Values[i++] =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetInt64(columnIndex);
599
editor.Values[i] =
DataReader
.IsDBNull(columnIndex) ? default : (sbyte)
DataReader
.GetByte(columnIndex);
604
var columnIndex =
DataReader
.GetOrdinal(seg.Name);
605
editor.Values[i++] =
DataReader
.IsDBNull(columnIndex) ? default : (sbyte)
DataReader
.GetByte(columnIndex);
629
editor.Values[i] =
DataReader
.IsDBNull(columnIndex) ? float.NaN :
DataReader
.GetFloat(columnIndex);
634
var columnIndex =
DataReader
.GetOrdinal(seg.Name);
635
editor.Values[i++] =
DataReader
.IsDBNull(columnIndex) ? float.NaN :
DataReader
.GetFloat(columnIndex);
659
editor.Values[i] =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetString(columnIndex).AsMemory();
664
var columnIndex =
DataReader
.GetOrdinal(seg.Name);
665
editor.Values[i++] =
DataReader
.IsDBNull(columnIndex) ? default :
DataReader
.GetString(columnIndex).AsMemory();
689
editor.Values[i] =
DataReader
.IsDBNull(columnIndex) ? default : (ushort)
DataReader
.GetInt16(columnIndex);
694
var columnIndex =
DataReader
.GetOrdinal(seg.Name);
695
editor.Values[i++] =
DataReader
.IsDBNull(columnIndex) ? default : (ushort)
DataReader
.GetInt16(columnIndex);
719
editor.Values[i] =
DataReader
.IsDBNull(columnIndex) ? default : (uint)
DataReader
.GetInt32(columnIndex);
724
var columnIndex =
DataReader
.GetOrdinal(seg.Name);
725
editor.Values[i++] =
DataReader
.IsDBNull(columnIndex) ? default : (uint)
DataReader
.GetInt32(columnIndex);
749
editor.Values[i] =
DataReader
.IsDBNull(columnIndex) ? default : (ulong)
DataReader
.GetInt64(columnIndex);
754
var columnIndex =
DataReader
.GetOrdinal(seg.Name);
755
editor.Values[i++] =
DataReader
.IsDBNull(columnIndex) ? default : (ulong)
DataReader
.GetInt64(columnIndex);
769
return
DataReader
.GetOrdinal(colInfo.Name);
783
return
DataReader
.GetOrdinal(seg.Name);