Skip to content

Commit

Permalink
Obsolete ForeignKeys.IsNotTransientSlow (#3553)
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik authored May 25, 2024
1 parent c3662c9 commit db22eaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/NHibernate/Async/Engine/ForeignKeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
//------------------------------------------------------------------------------


using System;
using NHibernate.Id;
using NHibernate.Persister.Entity;
using NHibernate.Proxy;
Expand Down Expand Up @@ -152,6 +153,8 @@ private async Task<bool> IsNullifiableAsync(string entityName, object obj, Cance
/// <remarks>
/// Hit the database to make the determination.
/// </remarks>
// Since v5.6
[Obsolete("This method has no more usages and will be removed in a future version")]
public static async Task<bool> IsNotTransientSlowAsync(string entityName, object entity, ISessionImplementor session, CancellationToken cancellationToken)
{
cancellationToken.ThrowIfCancellationRequested();
Expand Down
3 changes: 3 additions & 0 deletions src/NHibernate/Engine/ForeignKeys.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using NHibernate.Id;
using NHibernate.Persister.Entity;
using NHibernate.Proxy;
Expand Down Expand Up @@ -151,6 +152,8 @@ private bool IsNullifiable(string entityName, object obj)
/// <remarks>
/// Hit the database to make the determination.
/// </remarks>
// Since v5.6
[Obsolete("This method has no more usages and will be removed in a future version")]
public static bool IsNotTransientSlow(string entityName, object entity, ISessionImplementor session)
{
return !IsTransientSlow(entityName, entity, session);
Expand Down

0 comments on commit db22eaa

Please sign in to comment.