100 references to MissingSchemaAction
System.Data (100)
fx\src\data\System\Data\CodeGen\datacache.cs (2)
1082
schemaBody.Add(Stm(MethodCall(This(),"Merge",new CodeExpression[] {Variable("ds"),Primitive(false),Field(TypeExpr(typeof(
MissingSchemaAction
)),"Add")})));
1241
readXmlSerializable.Statements.Add(MethodCall(This(),"Merge",new CodeExpression[] {Variable("ds"),Primitive(false),Field(TypeExpr(typeof(
MissingSchemaAction
)),"Add")}));
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
579
static internal ArgumentOutOfRangeException InvalidMissingSchemaAction(
MissingSchemaAction
value) {
590
return InvalidEnumerationValue(typeof(
MissingSchemaAction
), (int) value);
fx\src\data\System\Data\Common\DataAdapter.cs (9)
33
private
MissingSchemaAction
_missingSchemaAction = System.Data.
MissingSchemaAction
.Add;
189
DefaultValue(Data.
MissingSchemaAction
.Add),
193
public
MissingSchemaAction
MissingSchemaAction { // V1.0.3300
200
case
MissingSchemaAction
.Add:
201
case
MissingSchemaAction
.Ignore:
202
case
MissingSchemaAction
.Error:
203
case
MissingSchemaAction
.AddWithKey:
653
bool withKeyInfo = (Data.
MissingSchemaAction
.AddWithKey == MissingSchemaAction);
fx\src\data\System\Data\Common\DataColumnMapping.cs (7)
85
public DataColumn GetDataColumnBySchemaAction(DataTable dataTable, Type dataType,
MissingSchemaAction
schemaAction) {
90
static public DataColumn GetDataColumnBySchemaAction(string sourceColumn, string dataSetColumn, DataTable dataTable, Type dataType,
MissingSchemaAction
schemaAction) {
137
static internal DataColumn CreateDataColumnBySchemaAction(string sourceColumn, string dataSetColumn, DataTable dataTable, Type dataType,
MissingSchemaAction
schemaAction) {
144
case
MissingSchemaAction
.Add:
145
case
MissingSchemaAction
.AddWithKey:
153
case
MissingSchemaAction
.Ignore:
161
case
MissingSchemaAction
.Error:
fx\src\data\System\Data\Common\DataColumnMappingCollection.cs (1)
369
static public DataColumn GetDataColumn(DataColumnMappingCollection columnMappings, string sourceColumn, Type dataType, DataTable dataTable, MissingMappingAction mappingAction,
MissingSchemaAction
schemaAction) {
fx\src\data\System\Data\Common\DataTableMapping.cs (6)
122
public DataColumn GetDataColumn(string sourceColumn, Type dataType, DataTable dataTable, MissingMappingAction mappingAction,
MissingSchemaAction
schemaAction) {
132
public DataTable GetDataTableBySchemaAction(DataSet dataSet,
MissingSchemaAction
schemaAction) {
157
case
MissingSchemaAction
.Add:
158
case
MissingSchemaAction
.AddWithKey:
166
case
MissingSchemaAction
.Ignore:
174
case
MissingSchemaAction
.Error:
fx\src\data\System\Data\Common\DBCommandBuilder.cs (1)
1234
column = tablemapping.GetDataColumn(columnName, null, row.Table, _missingMappingAction,
MissingSchemaAction
.Error);
fx\src\data\System\Data\Common\DbDataAdapter.cs (12)
182
private System.Data.
MissingSchemaAction
UpdateSchemaAction {
184
System.Data.
MissingSchemaAction
action = MissingSchemaAction;
185
if ((System.Data.
MissingSchemaAction
.Add == action) || (System.Data.
MissingSchemaAction
.AddWithKey == action)) {
186
return System.Data.
MissingSchemaAction
.Ignore;
188
return System.Data.
MissingSchemaAction
.Error;
523
if (Data.
MissingSchemaAction
.AddWithKey == MissingSchemaAction) {
630
Data.
MissingSchemaAction
missingSchema = UpdateSchemaAction;
657
private void ParameterOutput(IDataParameter parameter, DataRow row, DataTableMapping mappings, MissingMappingAction missingMapping,
MissingSchemaAction
missingSchema) {
688
Data.
MissingSchemaAction
missingSchema = UpdateSchemaAction;
788
System.Data.
MissingSchemaAction
schemaAction = UpdateSchemaAction;
1169
Data.
MissingSchemaAction
missingSchema = UpdateSchemaAction;
fx\src\data\System\Data\DataSet.cs (22)
2716
Merge(dataSet, false,
MissingSchemaAction
.Add);
2734
Merge(dataSet, preserveChanges,
MissingSchemaAction
.Add);
2748
public void Merge(DataSet dataSet, bool preserveChanges,
MissingSchemaAction
missingSchemaAction) {
2758
case
MissingSchemaAction
.Add:
2759
case
MissingSchemaAction
.Ignore:
2760
case
MissingSchemaAction
.Error:
2761
case
MissingSchemaAction
.AddWithKey:
2784
Merge(table, false,
MissingSchemaAction
.Add);
2797
public void Merge(DataTable table, bool preserveChanges,
MissingSchemaAction
missingSchemaAction)
2807
case
MissingSchemaAction
.Add:
2808
case
MissingSchemaAction
.Ignore:
2809
case
MissingSchemaAction
.Error:
2810
case
MissingSchemaAction
.AddWithKey:
2832
Merge(rows, false,
MissingSchemaAction
.Add);
2842
public void Merge(DataRow[] rows, bool preserveChanges,
MissingSchemaAction
missingSchemaAction)
2852
case
MissingSchemaAction
.Add:
2853
case
MissingSchemaAction
.Ignore:
2854
case
MissingSchemaAction
.Error:
2855
case
MissingSchemaAction
.AddWithKey:
2887
internal void RaiseMergeFailed(DataTable table, string conflict,
MissingSchemaAction
missingSchemaAction)
2889
if (
MissingSchemaAction
.Error == missingSchemaAction)
3404
adapter.MissingSchemaAction =
MissingSchemaAction
.AddWithKey;
fx\src\data\System\Data\DataTable.cs (8)
4422
Merge(table, false,
MissingSchemaAction
.Add);
4427
Merge(table, preserveChanges,
MissingSchemaAction
.Add);
4430
public void Merge(DataTable table, bool preserveChanges,
MissingSchemaAction
missingSchemaAction)
4439
case
MissingSchemaAction
.Add:
4440
case
MissingSchemaAction
.Ignore:
4441
case
MissingSchemaAction
.Error:
4442
case
MissingSchemaAction
.AddWithKey:
4474
adapter.MissingSchemaAction =
MissingSchemaAction
.AddWithKey;
fx\src\data\System\Data\IDataAdapter.cs (1)
19
MissingSchemaAction
MissingSchemaAction {
fx\src\data\System\Data\Merger.cs (23)
23
private
MissingSchemaAction
missingSchemaAction;
27
internal Merger(DataSet dataSet, bool preserveChanges,
MissingSchemaAction
missingSchemaAction) {
32
if (missingSchemaAction ==
MissingSchemaAction
.AddWithKey)
33
this.missingSchemaAction =
MissingSchemaAction
.Add;
38
internal Merger(DataTable dataTable, bool preserveChanges,
MissingSchemaAction
missingSchemaAction) {
44
if (missingSchemaAction ==
MissingSchemaAction
.AddWithKey)
45
this.missingSchemaAction =
MissingSchemaAction
.Add;
59
if (
MissingSchemaAction
.Add == missingSchemaAction) {
74
if (
MissingSchemaAction
.Ignore != missingSchemaAction) {
84
if (
MissingSchemaAction
.Add == missingSchemaAction) { // for which other options we should add expressions also?
229
Debug.Assert(
MissingSchemaAction
.Ignore == missingSchemaAction, "MergeSchema failed");
287
if (
MissingSchemaAction
.Add == missingSchemaAction) {
293
else if (
MissingSchemaAction
.Error == missingSchemaAction) {
298
if (
MissingSchemaAction
.Ignore != missingSchemaAction) {
305
if (
MissingSchemaAction
.Add == missingSchemaAction) {
320
dataSet.RaiseMergeFailed(targetTable, Res.GetString(Res.DataMerge_DataTypeMismatch, src.ColumnName),
MissingSchemaAction
.Error);
407
if (
MissingSchemaAction
.Add == missingSchemaAction) {
418
else if (
MissingSchemaAction
.Error == missingSchemaAction) {
433
Debug.Assert(
MissingSchemaAction
.Error == missingSchemaAction ||
434
MissingSchemaAction
.Add == missingSchemaAction,
476
if (
MissingSchemaAction
.Add == missingSchemaAction) {
519
Debug.Assert(
MissingSchemaAction
.Error == missingSchemaAction, "Unexpected value of MissingSchemaAction parameter : " + ((Enum) missingSchemaAction).ToString());
530
if (
MissingSchemaAction
.Ignore == missingSchemaAction) {
fx\src\data\System\Data\OleDb\OleDbDataAdapter.cs (2)
358
CommandBehavior behavior = (
MissingSchemaAction
.AddWithKey != MissingSchemaAction) ? 0 : CommandBehavior.KeyInfo;
406
CommandBehavior behavior = (
MissingSchemaAction
.AddWithKey != MissingSchemaAction) ? 0 : CommandBehavior.KeyInfo;
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (4)
92
MissingSchemaAction
schemaAction;
122
schemaAction = Data.
MissingSchemaAction
.Add;
479
private object[] SetupSchemaWithoutKeyInfo(MissingMappingAction mappingAction,
MissingSchemaAction
schemaAction, bool gettingData, DataColumn parentChapterColumn, object chapterValue) {
640
private object[] SetupSchemaWithKeyInfo(MissingMappingAction mappingAction,
MissingSchemaAction
schemaAction, bool gettingData, DataColumn parentChapterColumn, object chapterValue) {