// // System.Data.IDBCommand.cs // // Author: // Christopher Podurgiel (cpodurgiel@msn.com) // // (C) Chris Podurgiel // using System; namespace System.Data { /// /// Represents a SQL statement that is executed while connected to a data source, and is implemented by .NET data providers that access relational databases. /// public interface IDbCommand { void Cancel(); IDbDataParameter CreateParameter(); int ExecuteNonQuery(); // FIXME: temporarily commented so i could // compile SqlConnection and SqlCommand /* IDataReader ExecuteReader(); IDataReader ExecuteReader(CommandBehavior behavior); */ object ExecuteScalar(); void Prepare(); string CommandText{get; set;} int CommandTimeout{get; set;} CommandType CommandType{get; set;} IDbConnection Connection{get; set;} IDataParameterCollection Parameters{get;} IDbTransaction Transaction{get; set;} UpdateRowSource UpdatedRowSource{get; set;} } }