536cd135cc
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
52 lines
1.3 KiB
C#
52 lines
1.3 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="DbTransaction.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
// <owner current="true" primary="true">Microsoft</owner>
|
|
// <owner current="true" primary="false">Microsoft</owner>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.Data.Common {
|
|
|
|
using System;
|
|
using System.Data;
|
|
|
|
public abstract class DbTransaction : MarshalByRefObject, IDbTransaction { // V1.2.3300
|
|
protected DbTransaction() : base() {
|
|
}
|
|
|
|
public DbConnection Connection {
|
|
get {
|
|
return DbConnection;
|
|
}
|
|
}
|
|
|
|
IDbConnection IDbTransaction.Connection {
|
|
get {
|
|
return DbConnection;
|
|
}
|
|
}
|
|
|
|
abstract protected DbConnection DbConnection {
|
|
get;
|
|
}
|
|
|
|
abstract public IsolationLevel IsolationLevel {
|
|
get;
|
|
}
|
|
|
|
abstract public void Commit();
|
|
|
|
public void Dispose() {
|
|
Dispose(true);
|
|
}
|
|
|
|
protected virtual void Dispose(bool disposing) {
|
|
}
|
|
|
|
abstract public void Rollback();
|
|
|
|
}
|
|
|
|
}
|