| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- //
- // System.Data.SqlClient.SqlDataAdapter.cs
- //
- // Author:
- // Rodrigo Moya ([email protected])
- // Daniel Morgan ([email protected])
- // Tim Coleman ([email protected])
- //
- // (C) Ximian, Inc 2002
- // Copyright (C) 2002 Tim Coleman
- //
- using System;
- using System.ComponentModel;
- using System.Data;
- using System.Data.Common;
- namespace System.Data.SqlClient
- {
- /// <summary>
- /// Represents a set of command-related properties that are used
- /// to fill the DataSet and update a data source, all this
- /// from a SQL database.
- /// </summary>
- public sealed class SqlDataAdapter : DbDataAdapter
- {
- #region Constructors
-
- public SqlDataAdapter ()
- : this (new SqlCommand ())
- {
- }
- public SqlDataAdapter (SqlCommand selectCommand) : base ()
- {
- this.deleteCommand = new SqlCommand ();
- this.insertCommand = new SqlCommand ();
- this.selectCommand = selectCommand;
- this.updateCommand = new SqlCommand ();
- }
- public SqlDataAdapter (string selectCommandText, SqlConnection selectConnection)
- : this (new SqlCommand (selectCommandText, selectConnection))
- {
- }
- public SqlDataAdapter (string selectCommandText, string selectConnectionString)
- : this (selectCommandText, new SqlConnection (selectConnectionString))
- {
- }
- #endregion
- #region Properties
- public new SqlCommand DeleteCommand {
- get { return (SqlCommand)deleteCommand; }
- set { deleteCommand = value; }
- }
- public new SqlCommand InsertCommand {
- get { return (SqlCommand)insertCommand; }
- set { insertCommand = value; }
- }
- public new SqlCommand SelectCommand {
- get { return (SqlCommand)selectCommand; }
- set { selectCommand = value; }
- }
- public new SqlCommand UpdateCommand {
- get { return (SqlCommand)updateCommand; }
- set { updateCommand = value; }
- }
- #endregion // Properties
- #region Methods
- [MonoTODO]
- protected override RowUpdatedEventArgs CreateRowUpdatedEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- protected override RowUpdatingEventArgs CreateRowUpdatingEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
- {
- throw new NotImplementedException ();
- }
- protected override void OnRowUpdated (RowUpdatedEventArgs value)
- {
- throw new NotImplementedException ();
- }
- protected override void OnRowUpdating (RowUpdatingEventArgs value)
- {
- throw new NotImplementedException ();
- }
- #endregion // Methods
- #region Events and Delegates
- public event SqlRowUpdatedEventHandler RowUpdated;
- public event SqlRowUpdatingEventHandler RowUpdating;
- #endregion // Events and Delegates
- }
- }
|