Skip to content

Commit 02ce4bb

Browse files
Adjust wording
1 parent d896be5 commit 02ce4bb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/NHibernate/AdoNet/ConnectionManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ private void EnsureTransactionIsCreated()
407407
}
408408

409409
// Since v5.3
410-
[Obsolete("Use CurrentTransaction instead, and check for nulls.")]
410+
[Obsolete("Use CurrentTransaction instead, and check for null.")]
411411
public ITransaction Transaction
412412
{
413413
get

src/NHibernate/ISession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ public partial interface ISession : IDisposable
771771
/// Get the current Unit of Work and return the associated <c>ITransaction</c> object.
772772
/// </summary>
773773
// Since v5.3
774-
[Obsolete("Use GetCurrentTransaction extension method instead, and check for nulls.")]
774+
[Obsolete("Use GetCurrentTransaction extension method instead, and check for null.")]
775775
ITransaction Transaction { get; }
776776

777777
/// <summary>

src/NHibernate/IStatelessSession.cs

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

5656
/// <summary>Get the current NHibernate transaction.</summary>
5757
// Since v5.3
58-
[Obsolete("Use CurrentTransaction instead, and check for nulls.")]
58+
[Obsolete("Use CurrentTransaction instead, and check for null.")]
5959
ITransaction Transaction { get; }
6060

6161
/// <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 nulls.")]
41+
[Obsolete("Use CurrentTransaction instead, and check for null.")]
4242
public ITransaction Transaction => ConnectionManager.Transaction;
4343

4444
/// <summary>

0 commit comments

Comments
 (0)