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