/// <summary> /// Registers this <see cref="HsqlCommandBuilder"/> to handle the /// <see cref="DbDataAdapter.OnRowUpdating"/> event for the given /// <see cref="DbDataAdapter"/>. /// </summary> /// <param name="adapter"> /// The <see cref="DbDataAdapter"/> to be used for the update. /// </param> protected override void SetRowUpdatingHandler(DbDataAdapter adapter) { HsqlDataAdapter hsqlDataAdapter = ((HsqlDataAdapter)adapter); if (adapter == base.DataAdapter) { hsqlDataAdapter.RowUpdating -= new HsqlRowUpdatingEventHandler( this.HsqlRowUpdatingHandler); } else { hsqlDataAdapter.RowUpdating += new HsqlRowUpdatingEventHandler( this.HsqlRowUpdatingHandler); } }
/// <summary> /// Constructs a new <c>HsqlCommandBuilder</c> instance with the given adapter. /// </summary> /// <param name="adapter">The adapter.</param> public HsqlCommandBuilder(HsqlDataAdapter adapter) : this() { this.DataAdapter = adapter; }
/// <summary> /// Constructs a new <c>HsqlDataAdapter</c> instance that /// is a clone of the given adapter. /// </summary> /// <param name="toClone"> /// The adapter from which to construct this adapter. ///</param> private HsqlDataAdapter(HsqlDataAdapter toClone) : base(toClone) { m_updateBatchSize = 1; GC.SuppressFinalize(this); }