Skip to content

Commit 683f3af

Browse files
Move in common a property with an undue discrepancy.
This is not fixing internal troubles since this property has no usages.
1 parent 3e6da46 commit 683f3af

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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,9 @@ protected bool IsAlreadyDisposed
413413

414414
public abstract void Flush();
415415

416-
public abstract bool TransactionInProgress { get; }
416+
// 6.0 TODO: remove virtual.
417+
/// <inheritdoc />
418+
public virtual bool TransactionInProgress => ConnectionManager.IsInActiveTransaction;
417419

418420
#endregion
419421

src/NHibernate/Impl/SessionImpl.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,11 +1326,6 @@ public override void Flush()
13261326
}
13271327
}
13281328

1329-
public override bool TransactionInProgress
1330-
{
1331-
get { return ConnectionManager.IsInActiveTransaction; }
1332-
}
1333-
13341329
public bool IsDirty()
13351330
{
13361331
using (BeginProcess())

src/NHibernate/Impl/StatelessSessionImpl.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,6 @@ public void ManagedFlush()
369369
}
370370
}
371371

372-
public override bool TransactionInProgress
373-
{
374-
get { return Transaction.IsActive; }
375-
}
376-
377372
#region IStatelessSession Members
378373

379374
public override CacheMode CacheMode

0 commit comments

Comments
 (0)