Commit Graph
17 Commits
Author SHA1 Message Date
Gert Driesen 0785be89cc * OleDbDataAdapter.cs: Changed argument names to match MS. Removed
extra explicit interface implementation.
* OleDbParameter.cs: Changed argument names to match MS.
* OleDbTransaction.cs: Do not include IDbConnection.Connection and
IDisposable.Dispose for 2.0 profile.
* OleDbParameterCollection.cs: Changed argument names to match MS.
Do not include explicit interface implementations on 2.0 profile.
* OleDbConnection.cs: Changed argument names to match MS. Code
formatting.

svn path=/trunk/mcs/; revision=101354
2008-04-21 18:47:10 +00:00
Gert Driesen 843e73dcd2 * OdbcTransaction.cs: Clear connection in Commit and Rollback.
In IsolationLevel, throw IOE if transaction is no longer open.
* SqlTransaction.cs: Clear connection in commit. In IsolationLevel,
throw IOE if transaction is no longer open.
* OleDbTransaction.cs: Clear connection in Commit and Rollback. In
IsolationLevel and Begin overloads, throw IOE if transaction is no
longer open.

svn path=/trunk/mcs/; revision=87836
2007-10-19 17:12:55 +00:00
Gert Driesen e2681602c2 * DbTransaction.cs: Do not perform a rollback in Dispose (bool).
Leaves it up to deriving classes to override Dispose (bool) and
perform a rollback if necessary. Fixes bug #325397. Code formatting.
* ExceptionHelper.cs: Added TransactionNotUsable method that constructs
an InvalidOperationException to be thrown by IDbTransaction
implementations when the transaction is no longer open.
* OdbcTransaction.cs: Keep state of the transaction, and update it
when performing commit or rollback. In Dispose (bool), only perform
a rollback if transaction was not committed or rollback before.
In Commit and Rollback, throw an InvalidOperationException if
transaction is no longer open.
* SqlTransaction.cs: Avoid unnecessary initialization. Remove
isRolledBack since its essentially the same as isOpen. Use
ExceptionHelper.TransactionNotUsable instead of duplicating code.
On 2.0 profile, ignore call to Rollback when transaction was already
disposed.
* OleDbTransaction.cs: Keep track of whether transaction is open and
whether it's disposed. In Commit an Rollback, throw an IOE if the
transaction is no longer open. In Dispose (bool), perform a rollback
if the transaction is still open.

svn path=/trunk/mcs/; revision=87835
2007-10-19 16:04:39 +00:00
Nagappan Alagappan 1101243011 * OleDbTransaction.cs: Removed bogus TODO.
Modified Finalize method to exist only in 1.0 profile.

svn path=/trunk/mcs/; revision=86395
2007-09-26 13:46:40 +00:00
Nagappan Alagappan 9bb7daaf32 2007-07-22 Nagappan A <[email protected]>
* OleDbDataReader.cs: Fixed compilation warning.

	* OleDbParameterCollection.cs: Fixed compilation warning.

	* OleDbTransaction.cs: Fixed compilation warning.

	* OleDbCommandBuilder.cs: Fixed compilation warning.


svn path=/trunk/mcs/; revision=82425
2007-07-22 06:51:25 +00:00
Gert Driesen 20957f7f87 * OleDbConnection.cs: Derive from DbConnection on 2.0 profile, and
stubbed out where necessary. Fixed attributes for ConnectionString on
2.0 profile. Marked several members as override on 2.0 profile.
Do not hide StateChange event. Code formatting.
* OleDbCommandBuilder.cs: On 2.0, derive from DbCommandBuilder. Do not
include QuotePrefix and QuoteSuffix on 2.0. Stubbed out 2.0 members.
* OleDbDataAdapter.cs: On 2.0, derive from DbDataAdapter. Stubbed out
2.0 members. Do not not override Dispose on 2.0. Code formatting.
* OleDbDataReader.cs: Derive from DbDataReader on 2.0 profile. Marked
several members as override. Stubbed VisibleFieldCount. Added
EditorBrowsable attribute on GetData. Added GetDbDataReader on 2.0.
On 2.0, override GetEnumerator instead of explicit interface
implementation.
* OleDbErrorCollection.cs: Added 2.0 CopyTo overload.
* OleDbInfoMessageEventHandler.cs: Do not mark class serializable on
2.0 profile. Fixed API mismatch.
* OleDbParameter.cs: On 2.0, derive from DbParameter. Added new 2.0
ctor.  Override properties from base class and added
SourceColumnNullMapping property on 2.0. Implemented ResetDbType and
ResetOleDbType methods on 2.0.
* OleDbParameterCollection.cs: Derive from DbParameterCollection on
2.0 profile. Marked several members as override. Implemented AddRange,
CopyTo, IndexOf, Insert, Remove and RemoveAt methods introduced in
2.0 profile. Stubbed out GetParameter and SetParameter overloads.
* OleDbPermission.cs: Added missing BrowsableAttribute on Provider.
Code formatting.
* OleDbPermissionAttribute.cs: Added BrowsableAttribute on Provdider
(2.0 only).
* OleDbRowUpdatedEventHandler.cs:  Do not mark class serializable on
2.0 profile.
* OleDbRowUpdatingEventArgs.cs: Removed unused command field. Added
BaseCommand property on 2.0
* OleDbRowUpdatingEventHandler.cs: Do not mark class serializable on
2.0 profile. Fixed API mismatch.
* OleDbTransaction.cs: On 2.0, derive from DbTransaction. Added
DbConnection property and override Dispose (both 2.0 only). On 2.0,
Override Commit and Rollback. Code formatting.

svn path=/trunk/mcs/; revision=81189
2007-07-02 16:18:48 +00:00
Sebastien Pouliot dc60d22be7 2005-10-04 Sebastien Pouliot <[email protected]>
* OleDbDataReader.cs: Added a call to GC.SuppressFinalize in Dispose
	method (and avoids calling the destructor if the object was disposed).
	* OleDbTransaction.cs: Added a call to GC.SuppressFinalize in Dispose
	method (even if we throw an NotImplementedException afterward). This
	will remove warnings from gendarme.


svn path=/trunk/mcs/; revision=51228
2005-10-04 23:32:28 +00:00
Sachin Kumar ec81df777c Add license and copyright to all source files in System.Data
svn path=/trunk/mcs/; revision=29688
2004-06-16 13:52:11 +00:00
Rodrigo Moya 49f4f066e8 2002-08-25 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbTransaction.cs (OleDbTransaction): manage
	correctly the isolation level.
	(IsolationLevel): likewise.
	(~OleDbTransaction): implemented.

	* System.Data.OleDb/libgda.cs: added more needed stuff.

svn path=/trunk/mcs/; revision=7043
2002-08-26 01:23:20 +00:00
Rodrigo Moya e5d383158e 2002-08-16 Rodrigo Moya <[email protected]>
* System.Data.OleDb/TestOleDb.cs: made it work with a temporary table
	we create.
	(TestTransaction): added test for transactions.

svn path=/trunk/mcs/; revision=6688
2002-08-17 00:51:53 +00:00
Rodrigo Moya 9e3aae2189 2002-07-28 Rodrigo Moya <[email protected]>
* OleDbCommand.cs (ExecuteReader):
	(CreateParameter): implemented IDbCommand methods.
	(CommandText): don't create many GdaCommand's, only one is needed.
	(ExecuteNonQuery): set up the internal GDA command object.
	(ExecuteReader): use correctly the unique GDA command object.

	* libgda.cs: added new libgda calls.

svn path=/trunk/mcs/; revision=6232
2002-07-28 23:28:55 +00:00
Tim Coleman 1150f04cdd 2002-07-10 Tim Coleman <[email protected]>
* OleDbCommandBuilder.cs: Added new methods, properties
        * OleDbConnection.cs: Modified constructor
        * OleDbError.cs: Added stubbs
        * OleDbException.cs: Added stubbs
        * OleDbInfoMessageEventArgs.cs: Added stubbs
        * OleDbInfoMessageEventHandler.cs: style change
        * OleDbParameter.cs: Added conversion from type to OleDbType
        * OleDbPermission.cs: Added stubbs
        * OleDbSchemaGuid.cs: Added stubbs
        * OleDbTransaction.cs: New constructors, changes to methods to
                support transaction nesting
        * libgda.cs: Added my name to this file

svn path=/trunk/mcs/; revision=5679
2002-07-10 05:24:00 +00:00
Tim Coleman c95e199818 2002-07-09 Tim Coleman <[email protected]>
* OleDbCommand.cs: Style changes, added new methods
       * OleDbConnection.cs: Style changes, added new methods
       * OleDbDataAdapter.cs: Implementation
       * OleDbDataReader.cs: Added stubbs
       * OleDbErrorCollection.cs: Added stubbs, some implementation
       * OleDbParameter.cs: Style changes, added new methods
       * OleDbParameterCollection.cs: Style changes, added new methods
       * OleDbPermissionAttribute.cs: Style changes, added new methods
       * OleDbRowUpdatedEventArgs.cs: Added stubbs
       * OleDbRowUpdatingEventArgs.cs: Added stubbs
       * OleDbTransaction.cs: Style changes, added new methods
       * OleDbType.cs: Fixed two typos
       * libgda.cs: Style changes, added new methods

svn path=/trunk/mcs/; revision=5668
2002-07-09 13:47:54 +00:00
Rodrigo Moya 4856bf9df7 2002-06-02 Rodrigo Moya <[email protected]>
* OleDbTransaction.cs (Dispose): added missing method.

	* OleDbCommand.cs (Clone): added missing methods.
	(Parameters, Transaction, Connection): made these overload
	IDbCommand's ones.

	* OleDbParameterCollection.cs (IndexOf, Remove, RemoveAt):
	call m_list methods, not own ones.

	* OleDbParameter.cs: more implementation.

svn path=/trunk/mcs/; revision=5091
2002-06-02 14:41:11 +00:00
Rodrigo Moya 1f103f507d 2002-06-02 Rodrigo Moya <[email protected]>
* OleDbTransaction.cs (Connection, IsolationLevel, Begin,
	Commit, Rollback): implemented.
	(GdaConnection): added new internal property.

	* OleDbParameter.cs:
	* OleDbParameterCollection.cs: implemented some methods and
	properties.

	* libgda.cs: added yet more libgda API functions.

svn path=/trunk/mcs/; revision=5090
2002-06-02 13:47:04 +00:00
Rodrigo Moya e5e0b1250c 2002-05-29 Rodrigo Moya <[email protected]>
* libgda.cs: static class for libgda API calls.

	* OleDbConnection.cs: implemented constructors.
	(ConnectionString, Connectiontimeout, Database, State):
	implemented class properties.
	(BeginTransaction): implemented.

	* OleDbTransaction.cs: implemented protected constructors.

	* TestGDA.cs: simple test for libgda API.

svn path=/trunk/mcs/; revision=5010
2002-05-29 17:46:32 +00:00
Rodrigo Moya 3b7256d489 2002-05-27 Rodrigo Moya <[email protected]>
Started System.Data.OleDb provider, based on libgda.

svn path=/trunk/mcs/; revision=4993
2002-05-28 19:13:30 +00:00