ITableMappingCollection Interface
Contains a collection of TableMapping objects, and is implemented by the DataTableMappingCollection, which is used in common by .NET Framework data providers.
Assembly: System.Data (in System.Data.dll)
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of elements contained in the ICollection.(Inherited from ICollection.) |
![]() | IsFixedSize | |
![]() | IsReadOnly | |
![]() | IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe).(Inherited from ICollection.) |
![]() | Item[Int32] | Gets or sets the element at the specified index.(Inherited from IList.) |
![]() | Item[String^] | Gets or sets the instance of ITableMapping with the specified SourceTable name. |
![]() | SyncRoot | Gets an object that can be used to synchronize access to the ICollection.(Inherited from ICollection.) |
| Name | Description | |
|---|---|---|
![]() | Add(Object^) | |
![]() | Add(String^, String^) | Adds a table mapping to the collection. |
![]() | Clear() | |
![]() | Contains(Object^) | |
![]() | Contains(String^) | Gets a value indicating whether the collection contains a table mapping with the specified source table name. |
![]() | CopyTo(Array^, Int32) | Copies the elements of the ICollection to an Array, starting at a particular Array index.(Inherited from ICollection.) |
![]() | GetByDataSetTable(String^) | Gets the TableMapping object with the specified DataSet table name. |
![]() | GetEnumerator() | Returns an enumerator that iterates through a collection.(Inherited from IEnumerable.) |
![]() | IndexOf(Object^) | |
![]() | IndexOf(String^) | Gets the location of the ITableMapping object within the collection. |
![]() | Insert(Int32, Object^) | |
![]() | Remove(Object^) | |
![]() | RemoveAt(Int32) | |
![]() | RemoveAt(String^) | Removes the ITableMapping object with the specified SourceTable name from the collection. |
| Name | Description | |
|---|---|---|
![]() | AsParallel() | Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.) |
![]() | AsQueryable() | Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.) |
![]() | Cast<TResult>() | Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.) |
![]() | OfType<TResult>() | Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.) |
The ITableMappingCollection interface allows an inheriting class to implement a TableMapping collection. For more information, see DataAdapter DataTable and DataColumn Mappings.
An application does not create an instance of the ITableMappingCollection interface directly, but creates an instance of a class that inherits ITableMappingCollection.
Classes that inherit ITableMappingCollection must implement the inherited members, and typically define additional members to add provider-specific functionality. For example, the ITableMappingCollection interface defines one implementation of the RemoveAt method. In turn, the DataTableMappingCollection class inherits this method, and defines two additional overloads of RemoveAt.
Notes to Implementers:
When you inherit from the ITableMappingCollection interface, you should implement the following constructor:
Item | Description |
|---|---|
PrvTableMappingCollection() | Creates an empty PrvTableMappingCollection class. |
The following example creates an instance of the derived class, DataTableMapping, and adds it to a DataTableMappingCollection collection. It then informs the user that the mapping was added to the collection.
Available since 1.1

