diff --git a/src/OpenIddict.Core/Managers/OpenIddictApplicationManager.cs b/src/OpenIddict.Core/Managers/OpenIddictApplicationManager.cs
index af2d91f1..325e9645 100644
--- a/src/OpenIddict.Core/Managers/OpenIddictApplicationManager.cs
+++ b/src/OpenIddict.Core/Managers/OpenIddictApplicationManager.cs
@@ -312,14 +312,14 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public virtual Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken)
{
@@ -486,7 +486,7 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The number of results to return.
/// The number of results to skip.
@@ -501,7 +501,7 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.Core/Managers/OpenIddictAuthorizationManager.cs b/src/OpenIddict.Core/Managers/OpenIddictAuthorizationManager.cs
index 0617f147..e4cb1d20 100644
--- a/src/OpenIddict.Core/Managers/OpenIddictAuthorizationManager.cs
+++ b/src/OpenIddict.Core/Managers/OpenIddictAuthorizationManager.cs
@@ -237,14 +237,14 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public virtual Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken)
{
@@ -339,7 +339,7 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The number of results to return.
/// The number of results to skip.
@@ -354,7 +354,7 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.Core/Managers/OpenIddictScopeManager.cs b/src/OpenIddict.Core/Managers/OpenIddictScopeManager.cs
index 763879b5..69c9467e 100644
--- a/src/OpenIddict.Core/Managers/OpenIddictScopeManager.cs
+++ b/src/OpenIddict.Core/Managers/OpenIddictScopeManager.cs
@@ -156,14 +156,14 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public virtual Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken)
{
@@ -176,7 +176,7 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The number of results to return.
/// The number of results to skip.
@@ -191,7 +191,7 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.Core/Managers/OpenIddictTokenManager.cs b/src/OpenIddict.Core/Managers/OpenIddictTokenManager.cs
index 520080d0..7eb4bfee 100644
--- a/src/OpenIddict.Core/Managers/OpenIddictTokenManager.cs
+++ b/src/OpenIddict.Core/Managers/OpenIddictTokenManager.cs
@@ -294,14 +294,14 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public virtual Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken)
{
@@ -513,7 +513,7 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The number of results to return.
/// The number of results to skip.
@@ -528,7 +528,7 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.Core/Stores/IOpenIddictApplicationStore.cs b/src/OpenIddict.Core/Stores/IOpenIddictApplicationStore.cs
index 43157bc3..c8a2a055 100644
--- a/src/OpenIddict.Core/Stores/IOpenIddictApplicationStore.cs
+++ b/src/OpenIddict.Core/Stores/IOpenIddictApplicationStore.cs
@@ -117,14 +117,14 @@ namespace OpenIddict.Core
Task> FindByRedirectUriAsync([NotNull] string address, CancellationToken cancellationToken);
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken);
@@ -208,7 +208,7 @@ namespace OpenIddict.Core
Task> GetRedirectUrisAsync([NotNull] TApplication application, CancellationToken cancellationToken);
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The number of results to return.
/// The number of results to skip.
@@ -220,7 +220,7 @@ namespace OpenIddict.Core
Task> ListAsync([CanBeNull] int? count, [CanBeNull] int? offset, CancellationToken cancellationToken);
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.Core/Stores/IOpenIddictAuthorizationStore.cs b/src/OpenIddict.Core/Stores/IOpenIddictAuthorizationStore.cs
index 6b54e6df..7d02ddc6 100644
--- a/src/OpenIddict.Core/Stores/IOpenIddictAuthorizationStore.cs
+++ b/src/OpenIddict.Core/Stores/IOpenIddictAuthorizationStore.cs
@@ -107,14 +107,14 @@ namespace OpenIddict.Core
Task GetApplicationIdAsync([NotNull] TAuthorization authorization, CancellationToken cancellationToken);
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken);
@@ -163,7 +163,7 @@ namespace OpenIddict.Core
Task GetTypeAsync([NotNull] TAuthorization authorization, CancellationToken cancellationToken);
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The number of results to return.
/// The number of results to skip.
@@ -175,7 +175,7 @@ namespace OpenIddict.Core
Task> ListAsync([CanBeNull] int? count, [CanBeNull] int? offset, CancellationToken cancellationToken);
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.Core/Stores/IOpenIddictScopeStore.cs b/src/OpenIddict.Core/Stores/IOpenIddictScopeStore.cs
index e8745c68..22b3d760 100644
--- a/src/OpenIddict.Core/Stores/IOpenIddictScopeStore.cs
+++ b/src/OpenIddict.Core/Stores/IOpenIddictScopeStore.cs
@@ -72,19 +72,19 @@ namespace OpenIddict.Core
Task DeleteAsync([NotNull] TScope scope, CancellationToken cancellationToken);
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken);
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The number of results to return.
/// The number of results to skip.
@@ -96,7 +96,7 @@ namespace OpenIddict.Core
Task> ListAsync([CanBeNull] int? count, [CanBeNull] int? offset, CancellationToken cancellationToken);
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.Core/Stores/IOpenIddictTokenStore.cs b/src/OpenIddict.Core/Stores/IOpenIddictTokenStore.cs
index 56f4430b..51c871c0 100644
--- a/src/OpenIddict.Core/Stores/IOpenIddictTokenStore.cs
+++ b/src/OpenIddict.Core/Stores/IOpenIddictTokenStore.cs
@@ -136,14 +136,14 @@ namespace OpenIddict.Core
Task GetApplicationIdAsync([NotNull] TToken token, CancellationToken cancellationToken);
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken);
@@ -247,7 +247,7 @@ namespace OpenIddict.Core
Task GetTokenTypeAsync([NotNull] TToken token, CancellationToken cancellationToken);
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The number of results to return.
/// The number of results to skip.
@@ -259,7 +259,7 @@ namespace OpenIddict.Core
Task> ListAsync([CanBeNull] int? count, [CanBeNull] int? offset, CancellationToken cancellationToken);
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.Core/Stores/OpenIddictApplicationStore.cs b/src/OpenIddict.Core/Stores/OpenIddictApplicationStore.cs
index da5aaa0a..5abe0904 100644
--- a/src/OpenIddict.Core/Stores/OpenIddictApplicationStore.cs
+++ b/src/OpenIddict.Core/Stores/OpenIddictApplicationStore.cs
@@ -261,14 +261,14 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public abstract Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken);
@@ -426,7 +426,7 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The number of results to return.
/// The number of results to skip.
@@ -458,7 +458,7 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.Core/Stores/OpenIddictAuthorizationStore.cs b/src/OpenIddict.Core/Stores/OpenIddictAuthorizationStore.cs
index 0ff0219d..9925cb41 100644
--- a/src/OpenIddict.Core/Stores/OpenIddictAuthorizationStore.cs
+++ b/src/OpenIddict.Core/Stores/OpenIddictAuthorizationStore.cs
@@ -179,14 +179,14 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public abstract Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken);
@@ -262,7 +262,7 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The number of results to return.
/// The number of results to skip.
@@ -294,7 +294,7 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.Core/Stores/OpenIddictScopeStore.cs b/src/OpenIddict.Core/Stores/OpenIddictScopeStore.cs
index be1c61e9..7600a95b 100644
--- a/src/OpenIddict.Core/Stores/OpenIddictScopeStore.cs
+++ b/src/OpenIddict.Core/Stores/OpenIddictScopeStore.cs
@@ -81,19 +81,19 @@ namespace OpenIddict.Core
public abstract Task DeleteAsync([NotNull] TScope scope, CancellationToken cancellationToken);
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public abstract Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken);
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The number of results to return.
/// The number of results to skip.
@@ -125,7 +125,7 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.Core/Stores/OpenIddictTokenStore.cs b/src/OpenIddict.Core/Stores/OpenIddictTokenStore.cs
index 25019111..0c170818 100644
--- a/src/OpenIddict.Core/Stores/OpenIddictTokenStore.cs
+++ b/src/OpenIddict.Core/Stores/OpenIddictTokenStore.cs
@@ -221,14 +221,14 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public abstract Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken);
@@ -443,7 +443,7 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The number of results to return.
/// The number of results to skip.
@@ -475,7 +475,7 @@ namespace OpenIddict.Core
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.EntityFramework/Stores/OpenIddictApplicationStore.cs b/src/OpenIddict.EntityFramework/Stores/OpenIddictApplicationStore.cs
index 56fb1800..b984c447 100644
--- a/src/OpenIddict.EntityFramework/Stores/OpenIddictApplicationStore.cs
+++ b/src/OpenIddict.EntityFramework/Stores/OpenIddictApplicationStore.cs
@@ -227,14 +227,14 @@ namespace OpenIddict.EntityFramework
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public override Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken)
{
@@ -243,11 +243,11 @@ namespace OpenIddict.EntityFramework
throw new ArgumentNullException(nameof(query));
}
- return query(Applications).SingleOrDefaultAsync(cancellationToken);
+ return query(Applications).FirstOrDefaultAsync(cancellationToken);
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.EntityFramework/Stores/OpenIddictAuthorizationStore.cs b/src/OpenIddict.EntityFramework/Stores/OpenIddictAuthorizationStore.cs
index 2b713ae9..a081f839 100644
--- a/src/OpenIddict.EntityFramework/Stores/OpenIddictAuthorizationStore.cs
+++ b/src/OpenIddict.EntityFramework/Stores/OpenIddictAuthorizationStore.cs
@@ -240,14 +240,14 @@ namespace OpenIddict.EntityFramework
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public override Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken)
{
@@ -256,11 +256,11 @@ namespace OpenIddict.EntityFramework
throw new ArgumentNullException(nameof(query));
}
- return query(Authorizations).SingleOrDefaultAsync(cancellationToken);
+ return query(Authorizations).FirstOrDefaultAsync(cancellationToken);
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.EntityFramework/Stores/OpenIddictScopeStore.cs b/src/OpenIddict.EntityFramework/Stores/OpenIddictScopeStore.cs
index 3a7a78ba..159caa70 100644
--- a/src/OpenIddict.EntityFramework/Stores/OpenIddictScopeStore.cs
+++ b/src/OpenIddict.EntityFramework/Stores/OpenIddictScopeStore.cs
@@ -151,14 +151,14 @@ namespace OpenIddict.EntityFramework
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public override Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken)
{
@@ -167,11 +167,11 @@ namespace OpenIddict.EntityFramework
throw new ArgumentNullException(nameof(query));
}
- return query(Scopes).SingleOrDefaultAsync(cancellationToken);
+ return query(Scopes).FirstOrDefaultAsync(cancellationToken);
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.EntityFramework/Stores/OpenIddictTokenStore.cs b/src/OpenIddict.EntityFramework/Stores/OpenIddictTokenStore.cs
index 824afbf1..ccd7c221 100644
--- a/src/OpenIddict.EntityFramework/Stores/OpenIddictTokenStore.cs
+++ b/src/OpenIddict.EntityFramework/Stores/OpenIddictTokenStore.cs
@@ -224,14 +224,14 @@ namespace OpenIddict.EntityFramework
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public override Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken)
{
@@ -240,7 +240,7 @@ namespace OpenIddict.EntityFramework
throw new ArgumentNullException(nameof(query));
}
- return query(Tokens).SingleOrDefaultAsync(cancellationToken);
+ return query(Tokens).FirstOrDefaultAsync(cancellationToken);
}
///
@@ -276,7 +276,7 @@ namespace OpenIddict.EntityFramework
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictApplicationStore.cs b/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictApplicationStore.cs
index 924b51cd..c6c8f0ce 100644
--- a/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictApplicationStore.cs
+++ b/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictApplicationStore.cs
@@ -227,14 +227,14 @@ namespace OpenIddict.EntityFrameworkCore
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public override Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken)
{
@@ -243,11 +243,11 @@ namespace OpenIddict.EntityFrameworkCore
throw new ArgumentNullException(nameof(query));
}
- return query(Applications).SingleOrDefaultAsync(cancellationToken);
+ return query(Applications).FirstOrDefaultAsync(cancellationToken);
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictAuthorizationStore.cs b/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictAuthorizationStore.cs
index 8e37979d..47927d7f 100644
--- a/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictAuthorizationStore.cs
+++ b/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictAuthorizationStore.cs
@@ -282,14 +282,14 @@ namespace OpenIddict.EntityFrameworkCore
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public override Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken)
{
@@ -298,11 +298,11 @@ namespace OpenIddict.EntityFrameworkCore
throw new ArgumentNullException(nameof(query));
}
- return query(Authorizations).SingleOrDefaultAsync(cancellationToken);
+ return query(Authorizations).FirstOrDefaultAsync(cancellationToken);
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictScopeStore.cs b/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictScopeStore.cs
index 78a4faff..4dac4a3b 100644
--- a/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictScopeStore.cs
+++ b/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictScopeStore.cs
@@ -151,14 +151,14 @@ namespace OpenIddict.EntityFrameworkCore
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public override Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken)
{
@@ -167,11 +167,11 @@ namespace OpenIddict.EntityFrameworkCore
throw new ArgumentNullException(nameof(query));
}
- return query(Scopes).SingleOrDefaultAsync(cancellationToken);
+ return query(Scopes).FirstOrDefaultAsync(cancellationToken);
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.
diff --git a/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictTokenStore.cs b/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictTokenStore.cs
index 999785b9..7992aa77 100644
--- a/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictTokenStore.cs
+++ b/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictTokenStore.cs
@@ -292,14 +292,14 @@ namespace OpenIddict.EntityFrameworkCore
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns the first element.
///
/// The result type.
/// The query to execute.
/// The that can be used to abort the operation.
///
/// A that can be used to monitor the asynchronous operation,
- /// whose result returns the single element returned when executing the specified query.
+ /// whose result returns the first element returned when executing the query.
///
public override Task GetAsync([NotNull] Func, IQueryable> query, CancellationToken cancellationToken)
{
@@ -308,7 +308,7 @@ namespace OpenIddict.EntityFrameworkCore
throw new ArgumentNullException(nameof(query));
}
- return query(Tokens).SingleOrDefaultAsync(cancellationToken);
+ return query(Tokens).FirstOrDefaultAsync(cancellationToken);
}
///
@@ -344,7 +344,7 @@ namespace OpenIddict.EntityFrameworkCore
}
///
- /// Executes the specified query.
+ /// Executes the specified query and returns all the corresponding elements.
///
/// The result type.
/// The query to execute.