using System.Data;
using System.Data.OracleClient.Oci;
-namespace System.Data.OracleClient {
- public sealed class OracleTransaction : MarshalByRefObject, IDbTransaction, IDisposable
+namespace System.Data.OracleClient
+{
+ public sealed class OracleTransaction :
+#if NET_2_0
+ Common.DbTransaction
+#else
+ MarshalByRefObject, IDbTransaction, IDisposable
+#endif
{
#region Fields
get { return isOpen; }
}
- public OracleConnection Connection {
+ public
+#if NET_2_0
+ new
+#endif
+ OracleConnection Connection {
get { return connection; }
}
+
+#if NET_2_0
+ [MonoTODO]
+ protected override Common.DbConnection DbConnection {
+ get { return Connection; }
+ }
+#endif
- public IsolationLevel IsolationLevel {
+ public
+#if NET_2_0
+ override
+#endif
+ IsolationLevel IsolationLevel {
get { return isolationLevel; }
}
+#if !NET_2_0
IDbConnection IDbTransaction.Connection {
get { return Connection; }
}
+#endif
#endregion // Properties
transaction.AttachToServiceContext ();
}
- public void Commit ()
+ public
+#if NET_2_0
+ override
+#endif
+ void Commit ()
{
transaction.Commit ();
Connection.Transaction = null;
isOpen = false;
}
- private void Dispose (bool disposing)
+#if NET_2_0
+ protected override
+#endif
+ void Dispose (bool disposing)
{
if (!disposed) {
if (disposing) {
}
}
+#if !NET_2_0
public void Dispose ()
{
Dispose (true);
GC.SuppressFinalize (this);
}
+#endif
- public void Rollback ()
+ public
+#if NET_2_0
+ override
+#endif
+ void Rollback ()
{
transaction.Rollback ();
Connection.Transaction = null;