More patches from Eran Domb <erand@mainsoft.com>.
[mono.git] / mcs / class / System.Data / System.Data / IColumnMappingCollection.cs
1 //
2 // System.Data.IColumnMappingCollection.cs
3 //
4 // Author:
5 //   Christopher Podurgiel (cpodurgiel@msn.com)
6 //
7 // (C) Chris Podurgiel
8 //
9
10 using System.Collections;
11
12 namespace System.Data
13 {
14         /// <summary>
15         /// Contains a collection of ColumnMapping objects, and is implemented by the DataColumnMappingCollection, which is used in common by .NET data providers.
16         /// </summary>
17         public interface IColumnMappingCollection : IList, ICollection, IEnumerable
18         {
19                 IColumnMapping Add(string sourceColumnName, string dataSetColumnName);
20
21                 bool Contains(string sourceColumnName);
22
23                 IColumnMapping GetByDataSetColumn(string dataSetColumnName);
24
25                 int IndexOf(string sourceColumnName);
26
27                 void RemoveAt(string sourceColumnName);
28                 
29                 object this[string index]
30                 {
31                         get;
32                         set;
33                 }
34         }
35 }