Skip to content

Commit 8fb7455

Browse files
Move in common a property duplicated since connection manager own move.
1 parent 0acd2cb commit 8fb7455

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

src/NHibernate/Impl/AbstractSessionImpl.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public abstract partial class AbstractSessionImpl : ISessionImplementor
3232

3333
private bool closed;
3434

35+
/// <summary>Get the current NHibernate transaction.</summary>
36+
public ITransaction Transaction => ConnectionManager.Transaction;
37+
3538
protected bool TransactionCoordinatorShared { get; }
3639

3740
public ITransactionContext TransactionContext

src/NHibernate/Impl/SessionImpl.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,11 +1286,6 @@ public void Refresh(object obj, LockMode lockMode)
12861286
}
12871287
}
12881288

1289-
public ITransaction Transaction
1290-
{
1291-
get { return ConnectionManager.Transaction; }
1292-
}
1293-
12941289
/// <summary>
12951290
///
12961291
/// </summary>

src/NHibernate/Impl/StatelessSessionImpl.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,6 @@ public override bool TransactionInProgress
376376

377377
#region IStatelessSession Members
378378

379-
/// <summary> Get the current Hibernate transaction.</summary>
380-
public ITransaction Transaction
381-
{
382-
get { return ConnectionManager.Transaction; }
383-
}
384-
385379
public override CacheMode CacheMode
386380
{
387381
get { return CacheMode.Ignore; }

0 commit comments

Comments
 (0)