63 references to LoadOption
netstandard (1)
netstandard.cs (1)
553
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.
LoadOption
))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
119
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.
LoadOption
))]
System.Data.Common (61)
System\Data\Common\AdapterUtil.Common.cs (5)
144
internal static ArgumentOutOfRangeException InvalidLoadOption(
LoadOption
value)
149
case
LoadOption
.OverwriteChanges:
150
case
LoadOption
.PreserveChanges:
151
case
LoadOption
.Upsert:
156
return InvalidEnumerationValue(typeof(
LoadOption
), (int)value);
System\Data\Common\DataAdapter.cs (7)
24
private
LoadOption
_fillLoadOption;
85
public
LoadOption
FillLoadOption
89
LoadOption
fillLoadOption = _fillLoadOption;
90
return ((0 != fillLoadOption) ? _fillLoadOption :
LoadOption
.OverwriteChanges);
98
case
LoadOption
.OverwriteChanges:
99
case
LoadOption
.PreserveChanges:
100
case
LoadOption
.Upsert:
System\Data\DataSet.cs (3)
3610
public virtual void Load(IDataReader reader,
LoadOption
loadOption, FillErrorEventHandler? errorHandler, params DataTable[] tables)
3645
public void Load(IDataReader reader,
LoadOption
loadOption, params DataTable[] tables) =>
3649
public void Load(IDataReader reader,
LoadOption
loadOption, params string[] tables)
System\Data\DataSetUtil.cs (5)
70
internal static ArgumentOutOfRangeException InvalidLoadOption(
LoadOption
value)
75
case
LoadOption
.OverwriteChanges:
76
case
LoadOption
.PreserveChanges:
77
case
LoadOption
.Upsert:
82
return InvalidEnumerationValue(typeof(
LoadOption
), (int)value);
System\Data\DataTable.cs (27)
4744
public DataRow LoadDataRow(object?[] values,
LoadOption
loadOption)
4752
if (loadOption ==
LoadOption
.Upsert)
4968
public void Load(IDataReader reader) => Load(reader,
LoadOption
.PreserveChanges, null);
4971
public void Load(IDataReader reader,
LoadOption
loadOption) => Load(reader, loadOption, null);
4974
public virtual void Load(IDataReader reader,
LoadOption
loadOption, FillErrorEventHandler? errorHandler)
5007
private DataRow LoadRow(object?[] values,
LoadOption
loadOption, Index? searchIndex)
5057
if (loadOption !=
LoadOption
.Upsert || dataRow.RowState != DataRowState.Deleted)
5081
case
LoadOption
.OverwriteChanges:
5082
case
LoadOption
.PreserveChanges:
5085
case
LoadOption
.Upsert:
5089
throw ExceptionBuilder.ArgumentOutOfRange(nameof(
LoadOption
));
5097
case
LoadOption
.OverwriteChanges:
5098
case
LoadOption
.PreserveChanges:
5101
case
LoadOption
.Upsert:
5104
throw ExceptionBuilder.ArgumentOutOfRange(nameof(
LoadOption
));
5111
private void SetDataRowWithLoadOption(DataRow dataRow, int recordNo,
LoadOption
loadOption, bool checkReadOnly)
5122
case
LoadOption
.OverwriteChanges:
5126
case
LoadOption
.Upsert:
5130
case
LoadOption
.PreserveChanges:
5147
case
LoadOption
.OverwriteChanges:
5150
case
LoadOption
.Upsert:
5172
case
LoadOption
.PreserveChanges:
5180
throw ExceptionBuilder.ArgumentOutOfRange(nameof(
LoadOption
));
5238
case
LoadOption
.OverwriteChanges:
5242
case
LoadOption
.Upsert:
5258
case
LoadOption
.PreserveChanges:
5272
throw ExceptionBuilder.ArgumentOutOfRange(nameof(
LoadOption
));
System\Data\DataTableExtensions.cs (6)
47
public static void CopyToDataTable<T>(this IEnumerable<T> source, DataTable table,
LoadOption
options)
75
public static void CopyToDataTable<T>(this IEnumerable<T> source, DataTable table,
LoadOption
options, FillErrorEventHandler? errorHandler)
83
private static DataTable LoadTableFromEnumerable<T>(IEnumerable<T> source, DataTable? table,
LoadOption
? options, FillErrorEventHandler? errorHandler)
90
case
LoadOption
.OverwriteChanges:
91
case
LoadOption
.PreserveChanges:
92
case
LoadOption
.Upsert:
System\Data\ProviderBase\SchemaMapping.cs (8)
57
private readonly
LoadOption
_loadOption;
86
_loadOption = (
LoadOption
)4; // true
90
_loadOption = (
LoadOption
)5; //false
408
case
LoadOption
.OverwriteChanges:
409
case
LoadOption
.PreserveChanges:
410
case
LoadOption
.Upsert:
413
case (
LoadOption
)4: // true
416
case (
LoadOption
)5: // false