149 references to MappingType
netstandard (1)
netstandard.cs (1)
554
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.
MappingType
))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
120
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.
MappingType
))]
System.Data.Common (147)
System\Data\DataColumn.cs (22)
47
internal
MappingType
_columnMapping =
MappingType
.Element;
83
public DataColumn() : this(null, typeof(string), null,
MappingType
.Element)
93
public DataColumn(string? columnName) : this(columnName, typeof(string), null,
MappingType
.Element)
103
public DataColumn(string? columnName, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type dataType) : this(columnName, dataType, null,
MappingType
.Element)
113
public DataColumn(string? columnName, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type dataType, string? expr) : this(columnName, dataType, expr,
MappingType
.Element)
124
public DataColumn(string? columnName, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type dataType, string? expr,
MappingType
type)
544
if (ColumnMapping ==
MappingType
.SimpleContent)
924
if (ColumnMapping ==
MappingType
.SimpleContent)
960
if (Table != null && _columnMapping !=
MappingType
.Attribute)
974
if (_columnMapping !=
MappingType
.SimpleContent)
1295
/// Gets the <see cref='System.Data.
MappingType
'/> of the column.
1297
[DefaultValue(
MappingType
.Element)]
1298
public virtual
MappingType
ColumnMapping
1306
if (value ==
MappingType
.SimpleContent && _table != null)
1309
if (_columnMapping ==
MappingType
.Element)
1332
if (_columnMapping ==
MappingType
.SimpleContent)
1337
if (value ==
MappingType
.Element)
1341
else if (_columnMapping ==
MappingType
.Element)
1348
if (value ==
MappingType
.SimpleContent)
1621
private static bool IsColumnMappingValid(StorageType typeCode,
MappingType
mapping) =>
1622
!((mapping !=
MappingType
.Element) && DataStorage.IsTypeCustomType(typeCode));
System\Data\DataColumnCollection.cs (3)
139
if (column != null && column.ColumnMapping ==
MappingType
.SimpleContent)
178
if (column.ColumnMapping ==
MappingType
.Element)
876
if (column.ColumnMapping ==
MappingType
.Element)
System\Data\DataColumnPropertyDescriptor.cs (1)
84
public override bool IsBrowsable => Column.ColumnMapping ==
MappingType
.Hidden ? false : base.IsBrowsable;
System\Data\DataRelation.cs (2)
491
if (!value && (_parentKey.ColumnsReference[0].ColumnMapping ==
MappingType
.Hidden))
814
if (col.ColumnMapping !=
MappingType
.Hidden)
System\Data\DataTable.cs (5)
467
dc.ColumnMapping = (
MappingType
)info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.ColumnMapping", i), typeof(
MappingType
))!;
2094
Debug.Assert(value.ColumnMapping ==
MappingType
.SimpleContent, "should be text node here");
4843
DataColumn key = new DataColumn(keyName, typeof(int), null,
MappingType
.Hidden);
4881
DataColumn foreignKey = new DataColumn(keyName, parentKey.DataType, null,
MappingType
.Hidden);
System\Data\DataTableReader.cs (1)
744
DataColumn ColumnMapping = new DataColumn(SchemaTableOptionalColumn.ColumnMapping, typeof(
MappingType
));
System\Data\ProviderBase\SchemaMapping.cs (1)
1175
targetColumn.ColumnMapping = (
MappingType
)((IConvertible)value).ToInt32(CultureInfo.InvariantCulture);
System\Data\XDRSchema.cs (3)
370
if (column.ColumnMapping ==
MappingType
.Attribute)
454
isAttribute ?
MappingType
.Attribute :
MappingType
.Element);
System\Data\XmlDataLoader.cs (8)
281
if (c.ColumnMapping !=
MappingType
.SimpleContent)
417
if (c.Table == row.Table && c.ColumnMapping !=
MappingType
.Attribute && foundColumns[c] == null)
458
if (c.ColumnMapping ==
MappingType
.Attribute && foundColumns[c] == null)
720
if ((c != null) && (c.ColumnMapping ==
MappingType
.Attribute))
826
if (c.AllowDBNull && c.ColumnMapping !=
MappingType
.Hidden && !c.AutoIncrement)
901
if ((c != null) && (c.ColumnMapping ==
MappingType
.Attribute))
942
if ((c != null) && (c.ColumnMapping ==
MappingType
.Hidden))
1093
if (c.AllowDBNull && c.ColumnMapping !=
MappingType
.Hidden && !c.AutoIncrement)
System\Data\XMLDiffLoader.cs (3)
324
if ((col.ColumnMapping ==
MappingType
.Element) ||
325
(col.ColumnMapping ==
MappingType
.SimpleContent))
328
if (col.ColumnMapping ==
MappingType
.Hidden)
System\Data\xmlsaver.cs (44)
1239
if (col.ColumnMapping ==
MappingType
.SimpleContent)
1325
if (col.ColumnMapping ==
MappingType
.Attribute)
1423
Debug.Assert(col.ColumnMapping !=
MappingType
.SimpleContent, "Illegal state");
1425
string refString = (col.ColumnMapping !=
MappingType
.Element) ? Keywords.XSD_ATTRIBUTE : Keywords.XSD_ELEMENT;
1450
if (col.ColumnMapping ==
MappingType
.Hidden)
1466
if ((!col.DefaultValueIsNull) && (col.ColumnMapping !=
MappingType
.Hidden))
1469
if (col.ColumnMapping ==
MappingType
.Attribute && !col.AllowDBNull)
1522
if (col.ColumnMapping ==
MappingType
.Attribute && minOccurs != 0)
1526
if (col.ColumnMapping ==
MappingType
.Hidden)
1531
if (col.ColumnMapping !=
MappingType
.Attribute && minOccurs != 1)
1534
if ((col.ColumnMapping ==
MappingType
.Element) && fWriteOrdinal)
1605
if (!hasElements && col.ColumnMapping ==
MappingType
.Element)
1607
if (!hasAttributes && (col.ColumnMapping ==
MappingType
.Attribute || col.ColumnMapping ==
MappingType
.Hidden))
1619
if (col.ColumnMapping !=
MappingType
.Hidden)
1794
if (col.ColumnMapping ==
MappingType
.Hidden)
1804
if (col.ColumnMapping ==
MappingType
.Element)
1895
if (col.ColumnMapping ==
MappingType
.SimpleContent)
1898
if (col.ColumnMapping ==
MappingType
.Attribute || col.ColumnMapping ==
MappingType
.Element || col.ColumnMapping ==
MappingType
.Hidden)
1902
bool isAttribute = col.ColumnMapping !=
MappingType
.Element;
2044
if ((fields[k].ColumnMapping ==
MappingType
.Attribute) || (fields[k].ColumnMapping ==
MappingType
.Hidden))
2112
if ((fields[k].ColumnMapping ==
MappingType
.Attribute) || (fields[k].ColumnMapping ==
MappingType
.Hidden))
2196
if ((fields[k].ColumnMapping ==
MappingType
.Attribute) || (fields[k].ColumnMapping ==
MappingType
.Hidden))
2522
if ((row.Table.Columns[colNum].ColumnMapping ==
MappingType
.Attribute) ||
2523
(row.Table.Columns[colNum].ColumnMapping ==
MappingType
.Hidden))
2528
if ((row.Table.Columns[colNum].ColumnMapping ==
MappingType
.Element) ||
2529
(row.Table.Columns[colNum].ColumnMapping ==
MappingType
.SimpleContent))
2543
if (col.ColumnMapping ==
MappingType
.SimpleContent)
2551
case
MappingType
.Attribute:
2555
case
MappingType
.Hidden:
2559
case
MappingType
.SimpleContent:
2563
case
MappingType
.Element:
2955
if (col._columnMapping ==
MappingType
.Attribute)
2970
if (col._columnMapping ==
MappingType
.Hidden)
2984
if (col._columnMapping !=
MappingType
.Hidden)
2990
if (((value == DBNull.Value) || (col.ImplementsINullable && DataStorage.IsObjectSqlNull(value))) && (col.ColumnMapping ==
MappingType
.SimpleContent))
2994
if (((value != DBNull.Value) && (!col.ImplementsINullable || !DataStorage.IsObjectSqlNull(value))) && (col._columnMapping !=
MappingType
.Attribute))
2996
if (col._columnMapping !=
MappingType
.SimpleContent)
3071
if (col._columnMapping !=
MappingType
.SimpleContent && !startElementSkipped)
System\Data\XMLSchema.cs (14)
967
if (dc.ColumnMapping ==
MappingType
.Element)
1185
bool _attribute = (col.ColumnMapping ==
MappingType
.Attribute) || (col.ColumnMapping ==
MappingType
.Hidden);
1496
table.Columns[0].ColumnMapping =
MappingType
.SimpleContent;
1725
if (dc.ColumnMapping ==
MappingType
.Attribute)
2011
column = new DataColumn(columnName, type, null,
MappingType
.SimpleContent);
2124
column = new DataColumn(columnName, type, null,
MappingType
.SimpleContent);
2256
if (column.ColumnMapping !=
MappingType
.Attribute)
2266
column = new DataColumn(columnName, type, null,
MappingType
.Attribute); // this is to fix issue with Exception we used to throw for old inference engine if column
2273
column = new DataColumn(columnName, type, null,
MappingType
.Attribute);
2315
column.ColumnMapping =
MappingType
.Hidden;
2441
if (column.ColumnMapping !=
MappingType
.Element)
2451
column = new DataColumn(columnName, type, null,
MappingType
.Element); // this is to fix issue with Exception we used to throw for old inference engine if column
2458
column = new DataColumn(columnName, type, null,
MappingType
.Element);
System\Data\XmlToDatasetMap.cs (1)
140
return (c.ColumnMapping !=
MappingType
.Hidden);
System\Xml\DataPointer.cs (8)
131
if (!_doc.IsNotMapped(c) && (c.ColumnMapping ==
MappingType
.Attribute) == fAttribute && (fNulls || !Convert.IsDBNull(row[c, rowVersion])))
262
if (_column.ColumnMapping !=
MappingType
.Attribute)
289
if (_fOnValue || _doc.IsTextOnly(_column) || _column.ColumnMapping !=
MappingType
.Attribute)
347
if ((_column == null || _column.ColumnMapping ==
MappingType
.Attribute) && _node.NodeType == XmlNodeType.Element)
390
else if (_column.ColumnMapping ==
MappingType
.Attribute)
567
else if (_column.ColumnMapping ==
MappingType
.Attribute || _fOnValue)
661
if (_column!.ColumnMapping ==
MappingType
.Attribute)
855
Debug.Assert((_column.ColumnMapping ==
MappingType
.SimpleContent) ? _fOnValue : true);
System\Xml\DataSetMappper.cs (4)
167
MappingType
mt = col.ColumnMapping;
169
if (node.NodeType == XmlNodeType.Attribute && mt ==
MappingType
.Attribute)
174
if (node.NodeType == XmlNodeType.Element && mt ==
MappingType
.Element)
197
internal static bool IsNotMapped(DataColumn c) => c.ColumnMapping ==
MappingType
.Hidden;
System\Xml\XmlDataDocument.cs (10)
369
if (col.ColumnMapping !=
MappingType
.Hidden)
679
if (col.ColumnMapping ==
MappingType
.Attribute)
686
if (col.ColumnMapping ==
MappingType
.Element)
706
Debug.Assert(col.ColumnMapping ==
MappingType
.SimpleContent);
722
if (col.ColumnMapping ==
MappingType
.SimpleContent)
1132
return c.ColumnMapping ==
MappingType
.SimpleContent;
1412
if (col.ColumnMapping ==
MappingType
.SimpleContent && Convert.IsDBNull(value) && !rowElement.IsFoliated)
1482
if (col.ColumnMapping ==
MappingType
.Attribute)
2138
if (c.ColumnMapping !=
MappingType
.Hidden)
2378
Debug.Assert(col.ColumnMapping !=
MappingType
.Hidden);
System\Xml\XPathNodePointer.cs (17)
161
else if (_column.ColumnMapping ==
MappingType
.Attribute)
325
else if (_column.ColumnMapping ==
MappingType
.Attribute || _fOnValue)
553
if (!_doc.IsNotMapped(c) && (c.ColumnMapping ==
MappingType
.Attribute) == fAttribute && !Convert.IsDBNull(row[c, rowVersion]))
573
if (!_doc.IsNotMapped(c) && (c.ColumnMapping ==
MappingType
.Attribute) == fAttribute && !Convert.IsDBNull(row[c, rowVersion]))
590
if ((_column == null || _column.ColumnMapping ==
MappingType
.Attribute) && _node.NodeType == XmlNodeType.Element)
629
if (_column != null && _column.ColumnMapping !=
MappingType
.Attribute)
714
(int)XPathNodeType.Root => c.ColumnMapping ==
MappingType
.Element,
715
(int)XPathNodeType.Element => (c.ColumnMapping ==
MappingType
.Element || c.ColumnMapping ==
MappingType
.SimpleContent),
731
Debug.Assert(_column.ColumnMapping !=
MappingType
.Attribute && _column.ColumnMapping !=
MappingType
.Hidden);
896
if (_column.ColumnMapping ==
MappingType
.Attribute || _column.ColumnMapping ==
MappingType
.Hidden)
934
if (_column.ColumnMapping ==
MappingType
.Attribute || _column.ColumnMapping ==
MappingType
.Hidden)
1286
if (_column.ColumnMapping ==
MappingType
.Attribute)
1653
Debug.Assert((_column.ColumnMapping ==
MappingType
.SimpleContent) ? _fOnValue : true);