56 references to LoadOption
System.Data (44)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
551
static internal ArgumentOutOfRangeException InvalidLoadOption(
LoadOption
value) {
561
return InvalidEnumerationValue(typeof(
LoadOption
), (int) value);
fx\src\data\System\Data\Common\DataAdapter.cs (7)
30
private
LoadOption
_fillLoadOption;
129
public
LoadOption
FillLoadOption { // V1.2.3300
132
LoadOption
fillLoadOption = _fillLoadOption;
133
return ((0 != fillLoadOption) ? _fillLoadOption :
LoadOption
.OverwriteChanges);
138
case
LoadOption
.OverwriteChanges:
139
case
LoadOption
.PreserveChanges:
140
case
LoadOption
.Upsert:
fx\src\data\System\Data\DataSet.cs (3)
3392
public virtual void Load(IDataReader reader,
LoadOption
loadOption, FillErrorEventHandler errorHandler, params DataTable[] tables) {
3419
public void Load(IDataReader reader,
LoadOption
loadOption, params DataTable[] tables) {
3423
public void Load(IDataReader reader,
LoadOption
loadOption, params string[] tables) {
fx\src\data\System\Data\DataTable.cs (23)
4256
public DataRow LoadDataRow(object[] values,
LoadOption
loadOption) {
4262
if (loadOption ==
LoadOption
.Upsert) { // CurrentVersion, and Deleted
4456
Load(reader,
LoadOption
.PreserveChanges, null);
4459
public void Load (IDataReader reader,
LoadOption
loadOption) {
4463
public virtual void Load (IDataReader reader,
LoadOption
loadOption, FillErrorEventHandler errorHandler){
4489
private DataRow LoadRow(object[] values,
LoadOption
loadOption, Index searchIndex) {
4527
if (loadOption !=
LoadOption
.Upsert || dataRow.RowState != DataRowState.Deleted) {
4546
case
LoadOption
.OverwriteChanges:
4547
case
LoadOption
.PreserveChanges:
4550
case
LoadOption
.Upsert:
4561
case
LoadOption
.OverwriteChanges:
4562
case
LoadOption
.PreserveChanges:
4565
case
LoadOption
.Upsert:
4575
private void SetDataRowWithLoadOption (DataRow dataRow, int recordNo,
LoadOption
loadOption, bool checkReadOnly) {
4581
case
LoadOption
.OverwriteChanges:
4585
case
LoadOption
.Upsert:
4589
case
LoadOption
.PreserveChanges:
4605
case
LoadOption
.OverwriteChanges:
4608
case
LoadOption
.Upsert:
4627
case
LoadOption
.PreserveChanges:
4682
case
LoadOption
.OverwriteChanges:
4686
case
LoadOption
.Upsert:
4699
case
LoadOption
.PreserveChanges:
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (1)
491
table.LoadDataRow(values,
LoadOption
.OverwriteChanges);
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (8)
61
private readonly
LoadOption
_loadOption;
85
_loadOption = (
LoadOption
)4; // true
88
_loadOption = (
LoadOption
)5; //false
347
case
LoadOption
.OverwriteChanges:
348
case
LoadOption
.PreserveChanges:
349
case
LoadOption
.Upsert:
352
case (
LoadOption
)4: // true
355
case (
LoadOption
)5: // false
System.Data.DataSetExtensions (8)
System\Data\DataSetUtil.cs (2)
98
static internal ArgumentOutOfRangeException InvalidLoadOption(
LoadOption
value)
110
return InvalidEnumerationValue(typeof(
LoadOption
), (int)value);
System\Data\DataTableExtensions.cs (6)
67
public static void CopyToDataTable<T>(this IEnumerable<T> source, DataTable table,
LoadOption
options)
110
public static void CopyToDataTable<T>(this IEnumerable<T> source, DataTable table,
LoadOption
options, FillErrorEventHandler errorHandler)
118
private static DataTable LoadTableFromEnumerable<T>(IEnumerable<T> source, DataTable table,
LoadOption
? options, FillErrorEventHandler errorHandler)
123
case
LoadOption
.OverwriteChanges:
124
case
LoadOption
.PreserveChanges:
125
case
LoadOption
.Upsert:
System.Data.Entity (2)
System\Data\Objects\MergeOption.cs (2)
25
OverwriteChanges =
LoadOption
.OverwriteChanges,
30
PreserveChanges =
LoadOption
.PreserveChanges,
System.Data.Linq (2)
SqlClient\Reader\ObjectReaderCompiler.cs (2)
2532
bufferTable.Load(new Rereader(this.DataReader, this.hasCurrentRow, null),
LoadOption
.OverwriteChanges);
2819
tb.Load(new Rereader(this.dataReader, false, null),
LoadOption
.OverwriteChanges);