| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- //
- // System.Data.SqlClient.SqlCommandBuilder.cs
- //
- // Author:
- // Rodrigo Moya ([email protected])
- // Daniel Morgan ([email protected])
- // Tim Coleman ([email protected])
- //
- // (C) Ximian, Inc 2002
- // Copyright (C) Tim Coleman, 2002
- //
- using System;
- using System.Data;
- using System.ComponentModel;
- namespace System.Data.SqlClient {
- /// <summary>
- /// Builder of one command
- /// that will be used in manipulating a table for
- /// a DataSet that is assoicated with a database.
- /// </summary>
- public sealed class SqlCommandBuilder : Component
- {
- #region Fields
- string quotePrefix;
- string quoteSuffix;
- SqlDataAdapter adapter;
- #endregion // Fields
- #region Constructors
- public SqlCommandBuilder ()
- : this (null)
- {
- }
- public SqlCommandBuilder (SqlDataAdapter adapter)
- {
- this.adapter = adapter;
- this.quotePrefix = String.Empty;
- this.quoteSuffix = String.Empty;
- }
- #endregion // Constructors
- #region Properties
- [DataSysDescription ("The DataAdapter for which to automatically generator SqlCommands.")]
- [DefaultValue (null)]
- public SqlDataAdapter DataAdapter {
- get { return adapter; }
- set {
- if (adapter != null)
- adapter.RowUpdating -= new SqlRowUpdatingEventHandler (RowUpdatingHandler);
- adapter = value;
- adapter.RowUpdating += new SqlRowUpdatingEventHandler (RowUpdatingHandler);
- }
- }
- [Browsable (false)]
- [DataSysDescription ("The character used in a text command as the opening quote for quoting identifiers that contain special characters.")]
- [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
- public string QuotePrefix {
- get { return quotePrefix; }
- set { quotePrefix = value; }
- }
- [Browsable (false)]
- [DataSysDescription ("The character used in a text command as the closing quote for quoting identifiers that contain special characters.")]
- [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
- public string QuoteSuffix {
- get { return quoteSuffix; }
- set { quoteSuffix = value; }
- }
- #endregion // Properties
- #region Methods
- [MonoTODO]
- public static void DeriveParameters (SqlCommand command)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public SqlCommand GetDeleteCommand ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public SqlCommand GetInsertCommand ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public SqlCommand GetUpdateCommand ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public void RefreshSchema ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- private void RowUpdatingHandler (object sender, SqlRowUpdatingEventArgs e)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- protected override void Dispose (bool disposing)
- {
- throw new NotImplementedException ();
- }
- #endregion // Methods
- }
- }
|