180 references to MappingType
System.Data (154)
fx\src\data\System\Data\CodeGen\datacache.cs (6)
507
if(index[i].ColumnMapping !=
MappingType
.Hidden) {
581
Field(TypeExpr(typeof(
MappingType
)),
582
(column.ColumnMapping ==
MappingType
.SimpleContent) ? "SimpleContent" :
583
(column.ColumnMapping ==
MappingType
.Attribute ) ? "Attribute" :
584
(column.ColumnMapping ==
MappingType
.Hidden ) ? "Hidden" :
775
if(col.ColumnMapping !=
MappingType
.Hidden) {
fx\src\data\System\Data\DataColumn.cs (22)
50
internal
MappingType
columnMapping =
MappingType
.Element;
97
public DataColumn() : this(null, typeof(string), null,
MappingType
.Element) {
106
public DataColumn(string columnName) : this(columnName, typeof(string), null,
MappingType
.Element) {
115
public DataColumn(string columnName, Type dataType) : this(columnName, dataType, null,
MappingType
.Element) {
125
public DataColumn(string columnName, Type dataType, string expr) : this(columnName, dataType, expr,
MappingType
.Element) {
136
public DataColumn(string columnName, Type dataType, string expr,
MappingType
type) {
580
if (this.ColumnMapping ==
MappingType
.SimpleContent)
949
if (this.ColumnMapping ==
MappingType
.SimpleContent) {
980
if (Table != null && columnMapping !=
MappingType
.Attribute) {
991
if (columnMapping !=
MappingType
.SimpleContent) {
1303
/// <para>Gets the <see cref='System.Data.
MappingType
'/> of the column.</para>
1306
DefaultValue(
MappingType
.Element),
1309
public virtual
MappingType
ColumnMapping {
1317
if (value ==
MappingType
.SimpleContent && table != null) {
1319
if (columnMapping ==
MappingType
.Element)
1333
if (columnMapping ==
MappingType
.SimpleContent)
1336
if (value ==
MappingType
.Element)
1338
else if (columnMapping ==
MappingType
.Element)
1343
if (value ==
MappingType
.SimpleContent) {
1566
private bool IsColumnMappingValid(StorageType typeCode,
MappingType
mapping) {
1567
if ((mapping !=
MappingType
.Element) && DataStorage.IsTypeCustomType(typeCode)) {
fx\src\data\System\Data\DataColumnCollection.cs (3)
144
if (column != null && column.ColumnMapping ==
MappingType
.SimpleContent) {
166
if (column.ColumnMapping ==
MappingType
.Element)
795
if (column.ColumnMapping ==
MappingType
.Element)
fx\src\data\System\Data\DataColumnPropertyDescriptor.cs (1)
102
return (column.ColumnMapping == System.Data.
MappingType
.Hidden ? false : base.IsBrowsable);
fx\src\data\System\Data\DataRelation.cs (2)
490
if (!value && (parentKey.ColumnsReference[0].ColumnMapping ==
MappingType
.Hidden))
780
if (col.ColumnMapping !=
MappingType
.Hidden)
fx\src\data\System\Data\DataTable.cs (5)
435
dc.ColumnMapping = (
MappingType
) info.GetValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.ColumnMapping", i), typeof(
MappingType
));
1948
Debug.Assert(value.ColumnMapping ==
MappingType
.SimpleContent, "should be text node here");
4344
DataColumn key = new DataColumn(keyName, typeof(Int32), null,
MappingType
.Hidden);
4377
DataColumn foreignKey = new DataColumn(keyName, parentKey.DataType, null,
MappingType
.Hidden);
fx\src\data\System\Data\DataTableReader.cs (1)
630
DataColumn ColumnMapping = new DataColumn(SchemaTableOptionalColumn.ColumnMapping, typeof(System.Data.
MappingType
));
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (1)
1008
targetColumn.ColumnMapping = (
MappingType
)((IConvertible)value).ToInt32(CultureInfo.InvariantCulture);
fx\src\data\System\Data\XDRSchema.cs (3)
341
if (column.ColumnMapping ==
MappingType
.Attribute) {
417
isAttribute ?
MappingType
.Attribute :
MappingType
.Element);
fx\src\data\System\Data\XmlDataLoader.cs (9)
264
if (c.ColumnMapping !=
MappingType
.SimpleContent)
383
if (c.Table == row.Table && c.ColumnMapping !=
MappingType
.Attribute && foundColumns[c] == null) {
420
if (c.ColumnMapping ==
MappingType
.Attribute && foundColumns[c] == null) {
518
if (c.ColumnMapping ==
MappingType
.Attribute) {
691
if ((c != null) && (c.ColumnMapping ==
MappingType
.Attribute)) {
784
if (c.AllowDBNull && c.ColumnMapping !=
MappingType
.Hidden && !c.AutoIncrement) {
855
if ((c != null) && (c.ColumnMapping ==
MappingType
.Attribute)) {
903
if (( c != null) && (c.ColumnMapping ==
MappingType
.Hidden)) {
1034
if (c.AllowDBNull && c.ColumnMapping !=
MappingType
.Hidden && !c.AutoIncrement) {
fx\src\data\System\Data\XMLDiffLoader.cs (3)
304
if ((col.ColumnMapping ==
MappingType
.Element) ||
305
(col.ColumnMapping ==
MappingType
.SimpleContent))
308
if (col.ColumnMapping ==
MappingType
.Hidden) {
fx\src\data\System\Data\xmlsaver.cs (44)
1050
if (col.ColumnMapping ==
MappingType
.SimpleContent)
1122
if (col.ColumnMapping ==
MappingType
.Attribute) {
1204
Debug.Assert(col.ColumnMapping !=
MappingType
.SimpleContent , "Illegal state");
1206
String refString = (col.ColumnMapping !=
MappingType
.Element) ? Keywords.XSD_ATTRIBUTE : Keywords.XSD_ELEMENT;
1229
if (col.ColumnMapping ==
MappingType
.Hidden) { // CDT / UDT can not be mapped to Hidden column
1244
if ((!col.DefaultValueIsNull)&& (col.ColumnMapping !=
MappingType
.Hidden)){
1246
if (col.ColumnMapping ==
MappingType
.Attribute && !col.AllowDBNull ) {
1292
if (col.ColumnMapping ==
MappingType
.Attribute && minOccurs != 0)
1296
if (col.ColumnMapping ==
MappingType
.Hidden) {
1300
if (col.ColumnMapping !=
MappingType
.Attribute && minOccurs != 1)
1303
if ((col.ColumnMapping ==
MappingType
.Element) && fWriteOrdinal)
1366
if (!hasElements && col.ColumnMapping ==
MappingType
.Element)
1368
if (!hasAttributes && (col.ColumnMapping ==
MappingType
.Attribute || col.ColumnMapping ==
MappingType
.Hidden))
1379
if (col.ColumnMapping !=
MappingType
.Hidden)
1535
if (col.ColumnMapping ==
MappingType
.Hidden) {
1543
if (col.ColumnMapping ==
MappingType
.Element)
1628
if (col.ColumnMapping ==
MappingType
.SimpleContent)
1631
if (col.ColumnMapping ==
MappingType
.Attribute || col.ColumnMapping ==
MappingType
.Element || col.ColumnMapping ==
MappingType
.Hidden ) {
1634
bool isAttribute = col.ColumnMapping !=
MappingType
.Element;
1766
if ((fields[k].ColumnMapping ==
MappingType
.Attribute) || (fields[k].ColumnMapping ==
MappingType
.Hidden)) {
1825
if ((fields[k].ColumnMapping ==
MappingType
.Attribute) || (fields[k].ColumnMapping ==
MappingType
.Hidden)) {
1899
if ((fields[k].ColumnMapping ==
MappingType
.Attribute) || (fields[k].ColumnMapping ==
MappingType
.Hidden)) {
2194
if ((row.Table.Columns[colNum].ColumnMapping ==
MappingType
.Attribute) ||
2195
(row.Table.Columns[colNum].ColumnMapping ==
MappingType
.Hidden))
2199
if ((row.Table.Columns[colNum].ColumnMapping ==
MappingType
.Element) ||
2200
(row.Table.Columns[colNum].ColumnMapping ==
MappingType
.SimpleContent))
2211
if (col.ColumnMapping ==
MappingType
.SimpleContent)
2219
case
MappingType
.Attribute:
2223
case
MappingType
.Hidden:
2227
case
MappingType
.SimpleContent:
2231
case
MappingType
.Element:
2567
if (col.columnMapping ==
MappingType
.Attribute)
2581
if (col.columnMapping ==
MappingType
.Hidden)
2594
if (col.columnMapping !=
MappingType
.Hidden)
2600
if (((value == DBNull.Value) || (col.ImplementsINullable && DataStorage.IsObjectSqlNull(value))) && (col.ColumnMapping ==
MappingType
.SimpleContent))
2604
if (((value != DBNull.Value) && (!col.ImplementsINullable || !DataStorage.IsObjectSqlNull(value)))&&(col.columnMapping !=
MappingType
.Attribute)){
2605
if (col.columnMapping !=
MappingType
.SimpleContent) {
2664
if (col.columnMapping !=
MappingType
.SimpleContent && !startElementSkipped)
fx\src\data\System\Data\XMLSchema.cs (14)
826
if (dc.ColumnMapping ==
MappingType
.Element)
1005
bool _attribute = (col.ColumnMapping ==
MappingType
.Attribute) || (col.ColumnMapping ==
MappingType
.Hidden);
1288
table.Columns[0].ColumnMapping =
MappingType
.SimpleContent;
1493
if (dc.ColumnMapping ==
MappingType
.Attribute) {
1744
column = new DataColumn(columnName, type, null,
MappingType
.SimpleContent);
1843
column = new DataColumn(columnName, type, null,
MappingType
.SimpleContent);
1960
if (column.ColumnMapping !=
MappingType
.Attribute)
1970
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
1977
column = new DataColumn(columnName, type, null,
MappingType
.Attribute);
2012
column.ColumnMapping =
MappingType
.Hidden;
2120
if (column.ColumnMapping !=
MappingType
.Element)
2130
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
2136
column = new DataColumn(columnName, type, null,
MappingType
.Element);
fx\src\data\System\Data\XmlToDatasetMap.cs (1)
125
return (c.ColumnMapping !=
MappingType
.Hidden);
fx\src\data\System\NewXml\DataPointer.cs (8)
125
if (!doc.IsNotMapped( c ) && (c.ColumnMapping ==
MappingType
.Attribute) == fAttribute && (fNulls || ! Convert.IsDBNull( row[c, rowVersion] ) ) )
226
if (column.ColumnMapping !=
MappingType
.Attribute) {
247
if (fOnValue || doc.IsTextOnly(column) || column.ColumnMapping !=
MappingType
.Attribute)
289
if ((column == null || column.ColumnMapping ==
MappingType
.Attribute) && node.NodeType == XmlNodeType.Element) {
322
else if (this.column.ColumnMapping ==
MappingType
.Attribute) {
459
else if (this.column.ColumnMapping ==
MappingType
.Attribute || this.fOnValue) {
534
if (column.ColumnMapping ==
MappingType
.Attribute) {
683
Debug.Assert( (this.column.ColumnMapping ==
MappingType
.SimpleContent) ? (this.fOnValue == true) : true );
fx\src\data\System\NewXml\DataSetMappper.cs (4)
144
MappingType
mt = col.ColumnMapping;
146
if ( node.NodeType == XmlNodeType.Attribute && mt ==
MappingType
.Attribute )
148
if ( node.NodeType == XmlNodeType.Element && mt ==
MappingType
.Element )
174
return c.ColumnMapping ==
MappingType
.Hidden;
fx\src\data\System\NewXml\XmlDataDocument.cs (10)
342
if ( col.ColumnMapping !=
MappingType
.Hidden )
618
if ( col.ColumnMapping ==
MappingType
.Attribute ) {
623
if ( col.ColumnMapping ==
MappingType
.Element ) {
638
Debug.Assert( col.ColumnMapping ==
MappingType
.SimpleContent );
650
if ( col.ColumnMapping ==
MappingType
.SimpleContent ) {
1020
return c.ColumnMapping ==
MappingType
.SimpleContent;
1273
if ( col.ColumnMapping ==
MappingType
.SimpleContent && Convert.IsDBNull( value ) && !rowElement.IsFoliated )
1332
if (col.ColumnMapping ==
MappingType
.Attribute) {
1925
if ( c.ColumnMapping !=
MappingType
.Hidden )
2140
Debug.Assert( col.ColumnMapping !=
MappingType
.Hidden );
fx\src\data\System\NewXml\XPathNodePointer.cs (17)
161
else if (this._column.ColumnMapping ==
MappingType
.Attribute) {
296
else if (this._column.ColumnMapping ==
MappingType
.Attribute || this._fOnValue) {
520
if (!_doc.IsNotMapped( c ) && (c.ColumnMapping ==
MappingType
.Attribute) == fAttribute && ! Convert.IsDBNull( row[c, rowVersion] ) )
540
if (!_doc.IsNotMapped( c ) && (c.ColumnMapping ==
MappingType
.Attribute) == fAttribute && !Convert.IsDBNull( row[c, rowVersion] ) )
556
if ((_column == null || _column.ColumnMapping ==
MappingType
.Attribute) && _node.NodeType == XmlNodeType.Element) {
588
if ( _column != null && _column.ColumnMapping !=
MappingType
.Attribute )
660
return c.ColumnMapping ==
MappingType
.Element;
662
return ( c.ColumnMapping ==
MappingType
.Element || c.ColumnMapping ==
MappingType
.SimpleContent );
676
Debug.Assert( _column.ColumnMapping !=
MappingType
.Attribute && _column.ColumnMapping !=
MappingType
.Hidden );
813
if ( _column.ColumnMapping ==
MappingType
.Attribute || _column.ColumnMapping ==
MappingType
.Hidden )
847
if ( _column.ColumnMapping ==
MappingType
.Attribute || _column.ColumnMapping ==
MappingType
.Hidden )
1163
if (_column.ColumnMapping ==
MappingType
.Attribute) {
1494
Debug.Assert( (this._column.ColumnMapping ==
MappingType
.SimpleContent) ? (this._fOnValue == true) : true );
System.Data.Entity.Design (26)
System\Data\Entity\Design\SSDLGenerator\RelationshipDetailsCollection.cs (12)
241
this._columnPKCatalog = new System.Data.DataColumn(PK_CATALOG, typeof(string), null, System.Data.
MappingType
.Element);
243
this._columnPKSchema = new System.Data.DataColumn(PK_SCHEMA, typeof(string), null, System.Data.
MappingType
.Element);
245
this._columnPKTable = new System.Data.DataColumn(PK_TABLE, typeof(string), null, System.Data.
MappingType
.Element);
247
this._columnPKColumn = new System.Data.DataColumn(PK_COLUMN, typeof(string), null, System.Data.
MappingType
.Element);
249
this._columnFKCatalog = new System.Data.DataColumn(FK_CATALOG, typeof(string), null, System.Data.
MappingType
.Element);
251
this._columnFKSchema = new System.Data.DataColumn(FK_SCHEMA, typeof(string), null, System.Data.
MappingType
.Element);
253
this._columnFKTable = new System.Data.DataColumn(FK_TABLE, typeof(string), null, System.Data.
MappingType
.Element);
255
this._columnFKColumn = new System.Data.DataColumn(FK_COLUMN, typeof(string), null, System.Data.
MappingType
.Element);
257
this._columnOrdinal = new System.Data.DataColumn(ORDINAL, typeof(int), null, System.Data.
MappingType
.Element);
259
this._columnRelationshipName = new System.Data.DataColumn(RELATIONSHIP_NAME, typeof(string), null, System.Data.
MappingType
.Element);
261
this._columnRelationshipId = new System.Data.DataColumn(RELATIONSHIP_ID, typeof(string), null, System.Data.
MappingType
.Element);
263
this._columnRelationshipIsCascadeDelete = new System.Data.DataColumn(RELATIONSHIP_IsCascadeDelete, typeof(bool), null, System.Data.
MappingType
.Element);
System\Data\Entity\Design\SSDLGenerator\TableDetailsCollection.cs (14)
254
this._columnCatalog = new System.Data.DataColumn(CATALOG, typeof(string), null, System.Data.
MappingType
.Element);
256
this._columnSchema = new System.Data.DataColumn(SCHEMA, typeof(string), null, System.Data.
MappingType
.Element);
258
this._columnTable = new System.Data.DataColumn(TABLE, typeof(string), null, System.Data.
MappingType
.Element);
260
this._columnFieldColumn = new System.Data.DataColumn(COLUMN, typeof(string), null, System.Data.
MappingType
.Element);
262
this._columnFieldOrdinal = new System.Data.DataColumn(ORDINAL, typeof(int), null, System.Data.
MappingType
.Element);
264
this._columnIsNullable = new System.Data.DataColumn(IS_NULLABLE, typeof(bool), null, System.Data.
MappingType
.Element);
266
this._columnDataType = new System.Data.DataColumn(DATA_TYPE, typeof(string), null, System.Data.
MappingType
.Element);
268
this._columnMaximumLength = new System.Data.DataColumn(MAX_LENGTH, typeof(int), null, System.Data.
MappingType
.Element);
270
this._columnPrecision = new System.Data.DataColumn(PRECISION, typeof(int), null, System.Data.
MappingType
.Element);
272
this._columnDateTimePrecision = new System.Data.DataColumn(DATETIMEPRECISION, typeof(int), null, System.Data.
MappingType
.Element);
274
this._columnScale = new System.Data.DataColumn(SCALE, typeof(int), null, System.Data.
MappingType
.Element);
276
this._columnIsIdentity = new System.Data.DataColumn(IS_IDENTITY, typeof(bool), null, System.Data.
MappingType
.Element);
278
this._columnIsServerGenerated = new System.Data.DataColumn(IS_SERVERGENERATED, typeof(bool), null, System.Data.
MappingType
.Element);
280
this._columnIsPrimaryKey = new System.Data.DataColumn(IS_PRIMARYKEY, typeof(bool), null, System.Data.
MappingType
.Element);