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