[genmdesc] Fixed generator to allow instructions lengths equal to 0.
[mono.git] / mcs / class / System.Data / System.Data.Common / DbTransaction.cs
index 5909117540e6630accba264e3d81fd2819509f2e..8f0d744ea1b5fb5df6f8acb28905004a483a04dd 100644 (file)
@@ -5,8 +5,6 @@
 //   Tim Coleman (tim@timcoleman.com)
 //
 // Copyright (C) Tim Coleman, 2003
-//
-
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 //
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0 || TARGET_JVM
 
-namespace System.Data.Common {
+namespace System.Data.Common
+{
        public abstract class DbTransaction : MarshalByRefObject, IDbTransaction, IDisposable
        {
                #region Constructors
 
-               [MonoTODO]
                protected DbTransaction ()
                {
                }
@@ -50,19 +47,24 @@ namespace System.Data.Common {
                        get { return DbConnection; }
                }
 
-               protected abstract DbConnection DbConnection { get; }
+               protected abstract DbConnection DbConnection {
+                       get;
+               }
 
                IDbConnection IDbTransaction.Connection {
                        get { return (IDbConnection) Connection; }
                }
 
-               public abstract IsolationLevel IsolationLevel { get; }
+               public abstract IsolationLevel IsolationLevel {
+                       get;
+               }
 
                #endregion // Properties
 
                #region Methods
 
                public abstract void Commit ();
+
                public abstract void Rollback ();
 
                public void Dispose ()
@@ -72,12 +74,9 @@ namespace System.Data.Common {
 
                protected virtual void Dispose (bool disposing)
                {
-                       if (disposing)
-                               Rollback();
                }
 
                #endregion // Methods
        }
 }
 
-#endif