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