Skip to content

Commit 04afb3e

Browse files
fixup! Obsolete Transaction properties
Fix obsolete messages
1 parent 27a4820 commit 04afb3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/NHibernate/IStatelessSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public partial interface IStatelessSession : IDisposable
6464

6565
/// <summary>Get the current NHibernate transaction.</summary>
6666
// Since v5.3
67-
[Obsolete("Use CurrentTransaction instead, and check for null.")]
67+
[Obsolete("Use GetCurrentTransaction extension method instead, and check for null.")]
6868
ITransaction Transaction { get; }
6969

7070
/// <summary>

src/NHibernate/Impl/AbstractSessionImpl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public abstract partial class AbstractSessionImpl : ISessionImplementor
3838

3939
/// <summary>Get the current NHibernate transaction.</summary>
4040
// Since v5.3
41-
[Obsolete("Use CurrentTransaction instead, and check for null.")]
41+
[Obsolete("Use GetCurrentTransaction extension method instead, and check for null.")]
4242
public ITransaction Transaction => ConnectionManager.Transaction;
4343

4444
protected bool IsTransactionCoordinatorShared { get; }

0 commit comments

Comments
 (0)