#region Copyright
// Advanced.Data.Provider.IAdpCommand
//
// Copyright (C) 2004 Astrein Engenharia de Manuteno S/A
// Copyright (C) 2004 Everaldo Canuto <everaldo_canuto@yahoo.com.br>
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#endregion
using System;
using System.Data;
namespace Advanced.Data.Provider{
/// <summary>
/// Represents an SQL statement that is executed while connected to a data source, and is implemented
/// by Advanced Data Provider to have access all the data providers available.
/// </summary>
public interface IAdpCommand : IDbCommand
{
/// <summary>
/// Gets or sets the <see cref='AdpConnection'/> used by this instance of the <see cref='AdpCommand'/>.
/// </summary>
new AdpConnection Connection { get; set; }
/// <summary>
/// Creates a new instance of a <see cref='AdpParameter'/> object.
/// </summary>
/// <returns>A <see cref='AdpParameter'/> object.</returns>
new AdpParameter CreateParameter();
/// <summary>
/// Executes a Transact-SQL statement against the connection and returns the number of rows affected.
/// </summary>
/// <returns>The number os rows affected.</returns>
new AdpDataReader ExecuteReader();
/// <summary>
/// Executes a Transact-SQL statement against the connection and returns the number of rows affected.
/// </summary>
/// <param name="behavior">One of the <see cref='CommandBehavior'/> values.</param>
/// <returns>The number os rows affected.</returns>
new AdpDataReader ExecuteReader(System.Data.CommandBehavior behavior);
/// <summary>
/// Gets the <see cref='AdpParameterCollection'/>.
/// </summary>
new AdpParameterCollection Parameters { get; }
/// <summary>
/// Gets or sets the <see cref='AdpTransaction'/> within which the <see cref='AdpCommand'/> executes.
/// </summary>
new AdpTransaction Transaction { get; set; }
}
}
|