Skip to content

Regen async code #2263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public virtual Task ForceInitializationAsync(CancellationToken cancellationToken
}
return Task.CompletedTask;
}

/// <summary>
/// Called before inserting rows, to ensure that any surrogate keys are fully generated
/// </summary>
Expand Down
15 changes: 13 additions & 2 deletions src/NHibernate/Async/Collection/Generic/PersistentGenericBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,19 @@ public override Task<IEnumerable> GetDeletesAsync(ICollectionPersister persister
return Task.FromException<IEnumerable>(ex);
}
}

// Since 5.3

//Since 5.3
/// <summary>
/// Get all "orphaned" elements
/// </summary>
/// <param name="snapshot">The snapshot of the collection.</param>
/// <param name="entityName">The persistent class whose objects
/// the collection is expected to contain.</param>
/// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
/// <returns>
/// An <see cref="ICollection"/> that contains all of the elements
/// that have been orphaned.
/// </returns>
[Obsolete("This method has no more usages and will be removed in a future version")]
public override Task<ICollection> GetOrphansAsync(object snapshot, string entityName, CancellationToken cancellationToken)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,19 @@ public override async Task<object> ReadFromAsync(DbDataReader reader, ICollectio
}
return element;
}

// Since 5.3

//Since 5.3
/// <summary>
/// Get all "orphaned" elements
/// </summary>
/// <param name="snapshot">The snapshot of the collection.</param>
/// <param name="entityName">The persistent class whose objects
/// the collection is expected to contain.</param>
/// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
/// <returns>
/// An <see cref="ICollection"/> that contains all of the elements
/// that have been orphaned.
/// </returns>
[Obsolete("This method has no more usages and will be removed in a future version")]
public override Task<ICollection> GetOrphansAsync(object snapshot, string entityName, CancellationToken cancellationToken)
{
Expand Down
15 changes: 13 additions & 2 deletions src/NHibernate/Async/Collection/Generic/PersistentGenericList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,19 @@ namespace NHibernate.Collection.Generic
using System.Threading;
public partial class PersistentGenericList<T> : AbstractPersistentCollection, IList<T>, IList, IQueryable<T>
{

// Since 5.3

//Since 5.3
/// <summary>
/// Get all "orphaned" elements
/// </summary>
/// <param name="snapshot">The snapshot of the collection.</param>
/// <param name="entityName">The persistent class whose objects
/// the collection is expected to contain.</param>
/// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
/// <returns>
/// An <see cref="ICollection"/> that contains all of the elements
/// that have been orphaned.
/// </returns>
[Obsolete("This method has no more usages and will be removed in a future version")]
public override Task<ICollection> GetOrphansAsync(object snapshot, string entityName, CancellationToken cancellationToken)
{
Expand Down
15 changes: 13 additions & 2 deletions src/NHibernate/Async/Collection/Generic/PersistentGenericMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,19 @@ namespace NHibernate.Collection.Generic
using System.Threading;
public partial class PersistentGenericMap<TKey, TValue> : AbstractPersistentCollection, IDictionary<TKey, TValue>, ICollection
{

// Since 5.3

//Since 5.3
/// <summary>
/// Get all "orphaned" elements
/// </summary>
/// <param name="snapshot">The snapshot of the collection.</param>
/// <param name="entityName">The persistent class whose objects
/// the collection is expected to contain.</param>
/// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
/// <returns>
/// An <see cref="ICollection"/> that contains all of the elements
/// that have been orphaned.
/// </returns>
[Obsolete("This method has no more usages and will be removed in a future version")]
public override Task<ICollection> GetOrphansAsync(object snapshot, string entityName, CancellationToken cancellationToken)
{
Expand Down
15 changes: 13 additions & 2 deletions src/NHibernate/Async/Collection/Generic/PersistentGenericSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,19 @@ namespace NHibernate.Collection.Generic
using System.Threading;
public partial class PersistentGenericSet<T> : AbstractPersistentCollection, ISet<T>, IQueryable<T>
{

// Since 5.3

//Since 5.3
/// <summary>
/// Get all "orphaned" elements
/// </summary>
/// <param name="snapshot">The snapshot of the collection.</param>
/// <param name="entityName">The persistent class whose objects
/// the collection is expected to contain.</param>
/// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
/// <returns>
/// An <see cref="ICollection"/> that contains all of the elements
/// that have been orphaned.
/// </returns>
[Obsolete("This method has no more usages and will be removed in a future version")]
public override Task<ICollection> GetOrphansAsync(object snapshot, string entityName, CancellationToken cancellationToken)
{
Expand Down
15 changes: 13 additions & 2 deletions src/NHibernate/Async/Collection/PersistentArrayHolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,19 @@ namespace NHibernate.Collection
using System.Threading;
public partial class PersistentArrayHolder : AbstractPersistentCollection, ICollection
{

// Since 5.3

//Since 5.3
/// <summary>
/// Get all "orphaned" elements
/// </summary>
/// <param name="snapshot">The snapshot of the collection.</param>
/// <param name="entityName">The persistent class whose objects
/// the collection is expected to contain.</param>
/// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
/// <returns>
/// An <see cref="ICollection"/> that contains all of the elements
/// that have been orphaned.
/// </returns>
[Obsolete("This method has no more usages and will be removed in a future version")]
public override Task<ICollection> GetOrphansAsync(object snapshot, string entityName, CancellationToken cancellationToken)
{
Expand Down
1 change: 0 additions & 1 deletion src/NHibernate/Async/Type/IType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


using System.Collections;
using System.Collections.Generic;
using System.Data.Common;
using NHibernate.Engine;
using NHibernate.SqlTypes;
Expand Down