System.Data.Common.DataTableMappingCollection.IndexOfDataSetTable(string)

Here are the examples of the csharp api class System.Data.Common.DataTableMappingCollection.IndexOfDataSetTable(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: referencesource
Source File: DataAdapter.cs
View license
internal int IndexOfDataSetTable(string dataSetTable) {
            if (null != _tableMappings) {
                return TableMappings.IndexOfDataSetTable(dataSetTable);
            }
            return -1;
        }

2. Example

View license
public DataTableMapping GetByDataSetTable(string dataSetTable) {
            int index = IndexOfDataSetTable(dataSetTable);
            if (0 > index) {
                throw ADP.TablesDataSetTable(dataSetTable);
            }
            return items[index];
        }