Files
mono/mcs/class/System.Data/System.Data.Common/DataColumnMapping.cs
T
Tim Coleman df2142c86f 2002-05-24 Tim Coleman <[email protected]>
* System.Data.Common/DbDataAdapter.cs: remove IDbCommands, except
        for get accessors.  These should be implemented in derived classes.  See
        SqlDataAdapter for clues.
        * System.Data.SqlClient/SqlDataAdapter.cs: implement IDbDataAdapter
        * System.Data.Common/DataAdapter.cs:
        * System.Data.Common/DataTableMappingCollection.cs:
        * System.Data.Common/DataTableMapping.cs:
        * System.Data.Common/DataColumnMappingCollection.cs:
        * System.Data.Common/DataColumnMapping.cs:
        Properly (I hope!) implement all of the appropriate interfaces
        for these classes.

svn path=/trunk/mcs/; revision=4908
2002-05-24 17:42:12 +00:00

65 lines
1.1 KiB
C#

//
// System.Data.Common.DataColumnMapping
//
// Author:
// Rodrigo Moya ([email protected])
//
// (C) Ximian, Inc
//
using System.Data;
namespace System.Data.Common
{
/// <summary>
/// Contains a generic column mapping for an object that inherits from DataAdapter. This class cannot be inherited.
/// </summary>
public sealed class DataColumnMapping : MarshalByRefObject, IColumnMapping, ICloneable
{
private string srcColumn;
private string dsColumn;
public DataColumnMapping () {
srcColumn = null;
dsColumn = null;
}
public DataColumnMapping(string sc, string dc) {
srcColumn = sc;
dsColumn = dc;
}
[MonoTODO]
public DataColumn GetDataColumnBySchemaAction (
DataTable dataTable,
Type dataType,
MissingSchemaAction schemaAction) {
throw new NotImplementedException ();
}
public string DataSetColumn {
get {
return this.dsColumn;
}
set {
this.dsColumn = value;
}
}
[MonoTODO]
object ICloneable.Clone ()
{
throw new NotImplementedException ();
}
public string SourceColumn {
get {
return this.srcColumn;
}
set {
this.srcColumn = value;
}
}
}
}