#region Copyright
// Advanced.Data.Provider.IAdpConnection
//
// 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 open connection to a data source, and is implemented
/// by Advanced Data Provider to have access all the data providers available.
/// </summary>
public interface IAdpConnection : IDbConnection
{
/// <summary>
/// Begins a database transaction.
/// </summary>
/// <returns>A <see cref='AdpTransaction'/> object.</returns>
new AdpTransaction BeginTransaction();
/// <summary>
/// Begins a database transaction with the specified IsolationLevel value.
/// </summary>
/// <param name="il">One of the IsolationLevel values.</param>
/// <returns>A <see cref='AdpTransaction'/> object.</returns>
new AdpTransaction BeginTransaction(System.Data.IsolationLevel il);
/// <summary>
/// Creates and returns a <see cref='AdpCommand'/> object associated with the connection.
/// </summary>
/// <returns>A <see cref='AdpCommand'/> object.</returns>
new AdpCommand CreateCommand();
}
}
|