DataTableMapping Class

DataTableMapping Class

 

Contains a description of a mapped relationship between a source table and a DataTable. This class is used by a DataAdapter when populating a DataSet.

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)

System.Object
  System.MarshalByRefObject
    System.Data.Common.DataTableMapping

[<Sealed>]
type DataTableMapping = 
    class
        inherit MarshalByRefObject
        interface ITableMapping
        interface ICloneable
    end

NameDescription
System_CAPS_pubmethodDataTableMapping()

Initializes a new instance of the DataTableMapping class.

System_CAPS_pubmethodDataTableMapping(String, String)

Initializes a new instance of the DataTableMapping class with a source when given a source table name and a DataTable name.

System_CAPS_pubmethodDataTableMapping(String, String, DataColumnMapping[])

Initializes a new instance of the DataTableMapping class when given a source table name, a DataTable name, and an array of DataColumnMapping objects.

NameDescription
System_CAPS_pubpropertyColumnMappings
System_CAPS_pubpropertyDataSetTable

Gets or sets the table name from a DataSet.

System_CAPS_pubpropertySourceTable

Gets or sets the case-sensitive source table name from a data source.

NameDescription
System_CAPS_pubmethodCreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetColumnMappingBySchemaAction(String, MissingMappingAction)

Gets a DataColumn from the specified DataTable using the specified MissingMappingAction value and the name of the DataColumn.

System_CAPS_pubmethodGetDataColumn(String, Type, DataTable, MissingMappingAction, MissingSchemaAction)

Returns a DataColumn object for a given column name.

System_CAPS_pubmethodGetDataTableBySchemaAction(DataSet, MissingSchemaAction)

Gets the current DataTable for the specified DataSet using the specified MissingSchemaAction value.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodToString()

Converts the current SourceTable name to a string.(Overrides Object.ToString().)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodICloneable.Clone()

Creates a new object that is a copy of the current instance.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyITableMapping.ColumnMappings

Gets the derived DataColumnMappingCollection for the DataTable.

A DataTableMapping provides a master mapping between the data returned from a query against a data source, and a DataTable. The DataTableMapping name can be passed in place of the DataTable name to the Fill method of the DataAdapter. For more information, see DataAdapter DataTable and DataColumn Mappings.

The following example creates a DataTableMapping object and adds it to a DataTableMappingCollection. It then informs the user that the mapping was added to the collection and displays the parent mapping.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft