Skip to content

Commit db22eaa

Browse files
authored
Obsolete ForeignKeys.IsNotTransientSlow (#3553)
1 parent c3662c9 commit db22eaa

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/NHibernate/Async/Engine/ForeignKeys.cs

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//------------------------------------------------------------------------------
99

1010

11+
using System;
1112
using NHibernate.Id;
1213
using NHibernate.Persister.Entity;
1314
using NHibernate.Proxy;
@@ -152,6 +153,8 @@ private async Task<bool> IsNullifiableAsync(string entityName, object obj, Cance
152153
/// <remarks>
153154
/// Hit the database to make the determination.
154155
/// </remarks>
156+
// Since v5.6
157+
[Obsolete("This method has no more usages and will be removed in a future version")]
155158
public static async Task<bool> IsNotTransientSlowAsync(string entityName, object entity, ISessionImplementor session, CancellationToken cancellationToken)
156159
{
157160
cancellationToken.ThrowIfCancellationRequested();

src/NHibernate/Engine/ForeignKeys.cs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using NHibernate.Id;
23
using NHibernate.Persister.Entity;
34
using NHibernate.Proxy;
@@ -151,6 +152,8 @@ private bool IsNullifiable(string entityName, object obj)
151152
/// <remarks>
152153
/// Hit the database to make the determination.
153154
/// </remarks>
155+
// Since v5.6
156+
[Obsolete("This method has no more usages and will be removed in a future version")]
154157
public static bool IsNotTransientSlow(string entityName, object entity, ISessionImplementor session)
155158
{
156159
return !IsTransientSlow(entityName, entity, session);

0 commit comments

Comments
 (0)