mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* System.Data/ResDescriptionAttribute.cs:
* list
New internal class added
* System.Data/Constraint.cs:
* System.Data/ConstraintCollection.cs:
* System.Data/DBConcurrencyException.cs:
* System.Data/DataColumn.cs:
* System.Data/DataColumnCollection.cs:
* System.Data/DataRelation.cs:
* System.Data/DataRelationCollection.cs:
* System.Data/DataRow.cs:
* System.Data/DataRowBuilder.cs:
* System.Data/DataRowBuilder.cs:
* System.Data/DataRowCollection.cs:
* System.Data/DataSet.cs:
* System.Data/DataTable.cs:
* System.Data/DataTableCollection.cs:
* System.Data/DataView.cs:
* System.Data/DataViewManager.cs:
* System.Data/DataViewSetting.cs:
* System.Data/DataViewSettingCollection.cs:
* System.Data/ForeignKeyConstraint.cs:
* System.Data/ForeignKeyConstraint.cs:
* System.Data/InternalDataCollectionBase.cs:
* System.Data/MergeFailedEventArgs.cs:
* System.Data/StrongTypingException.cs:
* System.Data/TypeDataSetGeneratorException.cs:
* System.Data/UniqueConstraint.cs:
* System.Data.Common/DataAdapter.cs:
* System.Data.Common/DataColumnMapping.cs:
* System.Data.Common/DataColumnMappingCollection.cs:
* System.Data.Common/DataTableMapping.cs:
* System.Data.Common/DataTableMappingCollection.cs:
* System.Data.Common/DbDataAdapter.cs:
* System.Data.Common/DbDataPermission.cs:
* System.Data.Common/DbDataPermissionAttribute.cs:
* System.Data.Common/DbEnumerator.cs:
* System.Data.SqlClient/SqlCommand.cs:
* System.Data.SqlClient/SqlCommandBuilder.cs:
* System.Data.SqlClient/SqlConnection.cs:
* System.Data.SqlClient/SqlDataAdapter.cs:
* System.Data.SqlClient/SqlParameter.cs:
Add missing attributes, methods, properties based on information
from System.Data class status page on go-mono.com.
svn path=/trunk/mcs/; revision=8927
128 lines
3.4 KiB
C#
128 lines
3.4 KiB
C#
//
|
|
// System.Data.Common.DataAdapter
|
|
//
|
|
// Author:
|
|
// Rodrigo Moya ([email protected])
|
|
// Tim Coleman ([email protected])
|
|
//
|
|
// (C) Ximian, Inc
|
|
// Copyright (C) 2002 Tim Coleman
|
|
//
|
|
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
|
|
namespace System.Data.Common
|
|
{
|
|
/// <summary>
|
|
/// Represents a set of data commands and a database connection that are used to fill the DataSet and update the data source.
|
|
/// </summary>
|
|
public abstract class DataAdapter : Component, IDataAdapter
|
|
{
|
|
#region Fields
|
|
|
|
private bool acceptChangesDuringFill;
|
|
private bool continueUpdateOnError;
|
|
private MissingMappingAction missingMappingAction;
|
|
private MissingSchemaAction missingSchemaAction;
|
|
private DataTableMappingCollection tableMappings;
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
protected DataAdapter ()
|
|
{
|
|
acceptChangesDuringFill = true;
|
|
continueUpdateOnError = false;
|
|
missingMappingAction = MissingMappingAction.Passthrough;
|
|
missingSchemaAction = MissingSchemaAction.Add;
|
|
tableMappings = new DataTableMappingCollection ();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
[DataCategory ("Fill")]
|
|
[DataSysDescription ("Whether or not Fill will call DataRow.AcceptChanges.")]
|
|
[DefaultValue (true)]
|
|
public bool AcceptChangesDuringFill {
|
|
get { return acceptChangesDuringFill; }
|
|
set { acceptChangesDuringFill = value; }
|
|
}
|
|
|
|
[DataCategory ("Update")]
|
|
[DataSysDescription ("Whether or not to continue to the next DataRow when the Update events, RowUpdating and RowUpdated, Status is UpdateStatus.ErrorsOccurred.")]
|
|
[DefaultValue (false)]
|
|
public bool ContinueUpdateOnError {
|
|
get { return continueUpdateOnError; }
|
|
set { continueUpdateOnError = value; }
|
|
}
|
|
|
|
ITableMappingCollection IDataAdapter.TableMappings {
|
|
get { return TableMappings; }
|
|
}
|
|
|
|
[DataCategory ("Mapping")]
|
|
[DataSysDescription ("The action taken when a table or column in the TableMappings is missing.")]
|
|
[DefaultValue (MissingMappingAction.Passthrough)]
|
|
public MissingMappingAction MissingMappingAction {
|
|
get { return missingMappingAction; }
|
|
set { missingMappingAction = value; }
|
|
}
|
|
|
|
[DataCategory ("Mapping")]
|
|
[DataSysDescription ("The action taken when a table or column in the DataSet is missing.")]
|
|
[DefaultValue (MissingSchemaAction.Add)]
|
|
public MissingSchemaAction MissingSchemaAction {
|
|
get { return missingSchemaAction; }
|
|
set { missingSchemaAction = value; }
|
|
}
|
|
|
|
[DataCategory ("Mapping")]
|
|
[DataSysDescription ("How to map source table to DataSet table.")]
|
|
[DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
|
|
public DataTableMappingCollection TableMappings {
|
|
get { return tableMappings; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
[MonoTODO]
|
|
protected virtual DataAdapter CloneInternals ()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
protected virtual DataTableMappingCollection CreateTableMappings ()
|
|
{
|
|
tableMappings = new DataTableMappingCollection ();
|
|
return tableMappings;
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected override void Dispose (bool disposing)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
public abstract int Fill (DataSet dataSet);
|
|
public abstract DataTable[] FillSchema (DataSet dataSet, SchemaType schemaType);
|
|
public abstract IDataParameter[] GetFillParameters ();
|
|
|
|
[MonoTODO]
|
|
protected virtual bool ShouldSerializeTableMappings ()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
public abstract int Update (DataSet dataSet);
|
|
|
|
#endregion
|
|
|
|
}
|
|
}
|