You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Asynchronously returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists.
584
+
/// This method throws an exception if more than one element satisfies the condition.
585
+
/// </summary>
586
+
/// <remarks>
587
+
/// Multiple active operations on the same context instance are not supported. Use 'await' to ensure
588
+
/// that any asynchronous operations have completed before calling another method on this context.
589
+
/// </remarks>
590
+
/// <param name="source">
591
+
/// An <see cref="IQueryable" /> to return the single element of.
592
+
/// </param>
593
+
/// <param name="cancellationToken">
594
+
/// A <see cref="CancellationToken" /> to observe while waiting for the task to complete.
595
+
/// </param>
596
+
/// <returns>
597
+
/// A task that represents the asynchronous operation. The task result contains the single element of the input sequence that satisfies the condition in predicate.
/// Asynchronously returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists.
612
+
/// This method throws an exception if more than one element satisfies the condition.
613
+
/// </summary>
614
+
/// <remarks>
615
+
/// Multiple active operations on the same context instance are not supported. Use 'await' to ensure
616
+
/// that any asynchronous operations have completed before calling another method on this context.
617
+
/// </remarks>
618
+
/// <param name="source">
619
+
/// An <see cref="IQueryable" /> to return the single element of.
620
+
/// </param>
621
+
/// <param name="predicate"> A function to test each element for a condition. </param>
622
+
/// <param name="args">An object array that contains zero or more objects to insert into the predicate as parameters. Similar to the way String.Format formats strings.</param>
623
+
/// <returns>
624
+
/// A task that represents the asynchronous operation. The task result contains the single element of the input sequence that satisfies the condition in <paramref name="predicate" />, or default if no such element is found.
/// Asynchronously returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists.
634
+
/// This method throws an exception if more than one element satisfies the condition.
635
+
/// </summary>
636
+
/// <remarks>
637
+
/// Multiple active operations on the same context instance are not supported. Use 'await' to ensure
638
+
/// that any asynchronous operations have completed before calling another method on this context.
639
+
/// </remarks>
640
+
/// <param name="source">
641
+
/// An <see cref="IQueryable" /> to return the single element of.
642
+
/// </param>
643
+
/// <param name="predicate"> A function to test each element for a condition. </param>
644
+
/// <param name="args">An object array that contains zero or more objects to insert into the predicate as parameters. Similar to the way String.Format formats strings.</param>
645
+
/// <param name="cancellationToken">
646
+
/// A <see cref="CancellationToken" /> to observe while waiting for the task to complete.
647
+
/// </param>
648
+
/// <returns>
649
+
/// A task that represents the asynchronous operation. The task result contains the single element of the input sequence that satisfies the condition in <paramref name="predicate" />, or default if no such element is found.
// Copied from https://github.com/aspnet/EntityFramework/blob/9186d0b78a3176587eeb0f557c331f635760fe92/src/Microsoft.EntityFrameworkCore/EntityFrameworkQueryableExtensions.cs
0 commit comments