Adding System.Data..., System.ServiceModel..., and System.Web...
[mono.git] / mcs / class / referencesource / System.Data / System / Data / Common / DbTransaction.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="DbTransaction.cs" company="Microsoft">
3 //      Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 // <owner current="true" primary="true">[....]</owner>
6 // <owner current="true" primary="false">[....]</owner>
7 //------------------------------------------------------------------------------
8
9 namespace System.Data.Common {
10
11     using System;
12     using System.Data;
13
14     public abstract class DbTransaction : MarshalByRefObject, IDbTransaction { // V1.2.3300
15         protected DbTransaction() : base() {
16         }
17
18         public DbConnection Connection {
19             get {
20                 return DbConnection;
21             }
22         }
23
24         IDbConnection IDbTransaction.Connection {
25             get {
26                 return DbConnection;
27             }
28         }
29
30         abstract protected DbConnection DbConnection {
31             get;
32         }
33
34         abstract public IsolationLevel IsolationLevel {
35             get;
36         }
37
38         abstract public void Commit();
39
40         public void Dispose() {
41             Dispose(true);
42         }
43
44         protected virtual void Dispose(bool disposing) {
45         }
46
47         abstract public void Rollback();
48
49     }
50
51 }