mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
* 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
65 lines
1.1 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|