102 references to MissingSchemaAction
netstandard (1)
netstandard.cs (1)
559[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.MissingSchemaAction))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
125[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.MissingSchemaAction))]
System.Data.Common (100)
System\Data\Common\AdapterUtil.Common.cs (6)
176internal static ArgumentOutOfRangeException InvalidMissingSchemaAction(MissingSchemaAction value) 181case MissingSchemaAction.Add: 182case MissingSchemaAction.Ignore: 183case MissingSchemaAction.Error: 184case MissingSchemaAction.AddWithKey: 189return InvalidEnumerationValue(typeof(MissingSchemaAction), (int)value);
System\Data\Common\DataAdapter.cs (9)
27private MissingSchemaAction _missingSchemaAction = System.Data.MissingSchemaAction.Add; 137[DefaultValue(Data.MissingSchemaAction.Add)] 138public MissingSchemaAction MissingSchemaAction 145case MissingSchemaAction.Add: 146case MissingSchemaAction.Ignore: 147case MissingSchemaAction.Error: 148case MissingSchemaAction.AddWithKey: 664bool withKeyInfo = (Data.MissingSchemaAction.AddWithKey == MissingSchemaAction);
System\Data\Common\DataColumnMapping.cs (7)
74public DataColumn? GetDataColumnBySchemaAction(DataTable dataTable, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type? dataType, MissingSchemaAction schemaAction) 80public static DataColumn? GetDataColumnBySchemaAction(string? sourceColumn, string? dataSetColumn, DataTable dataTable, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type? dataType, MissingSchemaAction schemaAction) 115internal static DataColumn? CreateDataColumnBySchemaAction(string? sourceColumn, string? dataSetColumn, DataTable dataTable, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type? dataType, MissingSchemaAction schemaAction) 125case MissingSchemaAction.Add: 126case MissingSchemaAction.AddWithKey: 129case MissingSchemaAction.Ignore: 132case MissingSchemaAction.Error:
System\Data\Common\DataColumnMappingCollection.cs (1)
445public static DataColumn? GetDataColumn(DataColumnMappingCollection? columnMappings, string sourceColumn, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type? dataType, DataTable dataTable, MissingMappingAction mappingAction, MissingSchemaAction schemaAction)
System\Data\Common\DataTableMapping.cs (6)
115public DataColumn? GetDataColumn(string sourceColumn, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type? dataType, DataTable dataTable, MissingMappingAction mappingAction, MissingSchemaAction schemaAction) 127public DataTable? GetDataTableBySchemaAction(DataSet dataSet, MissingSchemaAction schemaAction) 147case MissingSchemaAction.Add: 148case MissingSchemaAction.AddWithKey: 151case MissingSchemaAction.Ignore: 154case MissingSchemaAction.Error:
System\Data\Common\DBCommandBuilder.cs (1)
1383column = tablemapping.GetDataColumn(columnName, null, row.Table, _missingMappingAction, MissingSchemaAction.Error);
System\Data\Common\DbDataAdapter.cs (12)
203private System.Data.MissingSchemaAction UpdateSchemaAction 207System.Data.MissingSchemaAction action = MissingSchemaAction; 208if ((System.Data.MissingSchemaAction.Add == action) || (System.Data.MissingSchemaAction.AddWithKey == action)) 210return System.Data.MissingSchemaAction.Ignore; 212return System.Data.MissingSchemaAction.Error; 624if (Data.MissingSchemaAction.AddWithKey == MissingSchemaAction) 752Data.MissingSchemaAction missingSchema = UpdateSchemaAction; 783private static void ParameterOutput(IDataParameter parameter, DataRow row, DataTableMapping mappings, MissingMappingAction missingMapping, MissingSchemaAction missingSchema) 822Data.MissingSchemaAction missingSchema = UpdateSchemaAction; 941System.Data.MissingSchemaAction schemaAction = UpdateSchemaAction; 1381Data.MissingSchemaAction missingSchema = UpdateSchemaAction;
System\Data\DataSet.cs (22)
3011Merge(dataSet, false, MissingSchemaAction.Add); 3029Merge(dataSet, preserveChanges, MissingSchemaAction.Add); 3042public void Merge(DataSet dataSet, bool preserveChanges, MissingSchemaAction missingSchemaAction) 3055case MissingSchemaAction.Add: 3056case MissingSchemaAction.Ignore: 3057case MissingSchemaAction.Error: 3058case MissingSchemaAction.AddWithKey: 3081Merge(table, false, MissingSchemaAction.Add); 3093public void Merge(DataTable table, bool preserveChanges, MissingSchemaAction missingSchemaAction) 3106case MissingSchemaAction.Add: 3107case MissingSchemaAction.Ignore: 3108case MissingSchemaAction.Error: 3109case MissingSchemaAction.AddWithKey: 3128Merge(rows, false, MissingSchemaAction.Add); 3136public void Merge(DataRow[] rows, bool preserveChanges, MissingSchemaAction missingSchemaAction) 3149case MissingSchemaAction.Add: 3150case MissingSchemaAction.Ignore: 3151case MissingSchemaAction.Error: 3152case MissingSchemaAction.AddWithKey: 3188internal void RaiseMergeFailed(DataTable? table, string conflict, MissingSchemaAction missingSchemaAction) 3190if (MissingSchemaAction.Error == missingSchemaAction) 3626adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey;
System\Data\DataTable.cs (8)
4933Merge(table, false, MissingSchemaAction.Add); 4936Merge(table, preserveChanges, MissingSchemaAction.Add); 4938public void Merge(DataTable table, bool preserveChanges, MissingSchemaAction missingSchemaAction) 4950case MissingSchemaAction.Add: 4951case MissingSchemaAction.Ignore: 4952case MissingSchemaAction.Error: 4953case MissingSchemaAction.AddWithKey: 4989adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey;
System\Data\IDataAdapter.cs (1)
11MissingSchemaAction MissingSchemaAction { get; set; }
System\Data\Merger.cs (23)
16private readonly MissingSchemaAction _missingSchemaAction; 20internal Merger(DataSet dataSet, bool preserveChanges, MissingSchemaAction missingSchemaAction) 26_missingSchemaAction = missingSchemaAction == MissingSchemaAction.AddWithKey ? 27MissingSchemaAction.Add : 31internal Merger(DataTable dataTable, bool preserveChanges, MissingSchemaAction missingSchemaAction) 38_missingSchemaAction = missingSchemaAction == MissingSchemaAction.AddWithKey ? 39MissingSchemaAction.Add : 55if (MissingSchemaAction.Add == _missingSchemaAction) 73if (MissingSchemaAction.Ignore != _missingSchemaAction) 85if (MissingSchemaAction.Add == _missingSchemaAction) 269Debug.Assert(MissingSchemaAction.Ignore == _missingSchemaAction, "MergeSchema failed"); 337if (MissingSchemaAction.Add == _missingSchemaAction) 344else if (MissingSchemaAction.Error == _missingSchemaAction) 351if (MissingSchemaAction.Ignore != _missingSchemaAction) 361if (MissingSchemaAction.Add == _missingSchemaAction) 384_dataSet!.RaiseMergeFailed(targetTable, SR.Format(SR.DataMerge_DataTypeMismatch, src.ColumnName), MissingSchemaAction.Error); 489if (MissingSchemaAction.Add == _missingSchemaAction) 503else if (MissingSchemaAction.Error == _missingSchemaAction) 522Debug.Assert(MissingSchemaAction.Error == _missingSchemaAction || 523MissingSchemaAction.Add == _missingSchemaAction, 567if (MissingSchemaAction.Add == _missingSchemaAction) 600Debug.Assert(MissingSchemaAction.Error == _missingSchemaAction, $"Unexpected value of MissingSchemaAction parameter : {_missingSchemaAction}"); 611if (MissingSchemaAction.Ignore == _missingSchemaAction)
System\Data\ProviderBase\SchemaMapping.cs (4)
94MissingSchemaAction schemaAction; 125schemaAction = Data.MissingSchemaAction.Add; 564private object[]? SetupSchemaWithoutKeyInfo(MissingMappingAction mappingAction, MissingSchemaAction schemaAction, bool gettingData, DataColumn? parentChapterColumn, object? chapterValue) 760private object[]? SetupSchemaWithKeyInfo(MissingMappingAction mappingAction, MissingSchemaAction schemaAction, bool gettingData, DataColumn? parentChapterColumn, object? chapterValue)