1 interface inheriting from IQueryable
System.Linq.Expressions (1)
System\Linq\IQueryable.cs (1)
103
public interface IOrderedQueryable<out T> :
IQueryable
<T>, IOrderedQueryable
612 references to IQueryable
Aspire.Dashboard (21)
Components\Controls\Chart\MetricTable.razor.cs (1)
30
private
IQueryable
<MetricViewBase> _metricsView => _metrics.Values.AsEnumerable().Reverse().ToList().AsQueryable();
Components\Controls\PropertyGrid.razor.cs (1)
93
public
IQueryable
<TItem>? Items { get; set; }
Components\Controls\ResourceDetails.razor.cs (7)
60
internal
IQueryable
<EnvironmentVariableViewModel> FilteredEnvironmentVariables =>
65
internal
IQueryable
<DisplayedUrl> FilteredUrls =>
70
internal
IQueryable
<ResourceDetailRelationshipViewModel> FilteredRelationships =>
75
internal
IQueryable
<ResourceDetailRelationshipViewModel> FilteredBackRelationships =>
80
internal
IQueryable
<VolumeViewModel> FilteredVolumes =>
85
internal
IQueryable
<HealthReportViewModel> FilteredHealthReports =>
90
internal
IQueryable
<DisplayedResourcePropertyViewModel> FilteredResourceProperties =>
Components\Controls\SpanDetails.razor.cs (6)
42
private
IQueryable
<TelemetryPropertyViewModel> FilteredItems =>
45
private
IQueryable
<TelemetryPropertyViewModel> FilteredContextItems =>
48
private
IQueryable
<TelemetryPropertyViewModel> FilteredResourceItems =>
52
private
IQueryable
<OtlpSpanEvent> FilteredSpanEvents =>
55
private
IQueryable
<SpanLinkViewModel> FilteredSpanLinks =>
58
private
IQueryable
<SpanLinkViewModel> FilteredSpanBacklinks =>
Components\Controls\StructuredLogDetails.razor.cs (4)
31
internal
IQueryable
<TelemetryPropertyViewModel> FilteredItems =>
34
internal
IQueryable
<TelemetryPropertyViewModel> FilteredExceptionItems =>
37
internal
IQueryable
<TelemetryPropertyViewModel> FilteredContextItems =>
40
internal
IQueryable
<TelemetryPropertyViewModel> FilteredResourceItems =>
Components\Dialogs\ExemplarsDialog.razor.cs (1)
33
public
IQueryable
<ChartExemplar> MetricView => Content.Exemplars.AsQueryable();
Components\Pages\Resources.razor.cs (1)
407
var
filteredResources = GetFilteredResources()
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
64
private static Type s_typeOfIQueryableGeneric = typeof(
IQueryable
<>);
Identity.DefaultUI.WebSite (2)
src\Identity\test\InMemory.Test\InMemoryUserStore.cs (2)
28
public
IQueryable
<TUser> Users
338
var
query = from user in Users
IdentitySample.PasskeyConformance (1)
InMemoryUserStore.cs (1)
17
public
IQueryable
<TUser> Users => _users.Values.AsQueryable();
IdentitySample.PasskeyUI (1)
InMemoryUserStore.cs (1)
17
public
IQueryable
<TUser> Users => _users.Values.AsQueryable();
Microsoft.AspNetCore.Components.QuickGrid (23)
Columns\GridSort.cs (3)
17
private readonly Func<
IQueryable
<TGridItem>, bool, IOrderedQueryable<TGridItem>> _first;
26
internal GridSort(Func<
IQueryable
<TGridItem>, bool, IOrderedQueryable<TGridItem>> first, (LambdaExpression, bool) firstExpression)
88
internal IOrderedQueryable<TGridItem> Apply(
IQueryable
<TGridItem> queryable, bool ascending)
GridItemsProviderRequest.cs (7)
27
/// Rather than inferring the sort rules manually, you should normally call either <see cref="ApplySorting(
IQueryable
{TGridItem})"/>
35
/// Rather than inferring the sort rules manually, you should normally call either <see cref="ApplySorting(
IQueryable
{TGridItem})"/>
57
/// Applies the request's sorting rules to the supplied <see cref="
IQueryable
{TGridItem}"/>.
59
/// <param name="source">An <see cref="
IQueryable
{TGridItem}"/>.</param>
60
/// <returns>A new <see cref="
IQueryable
{TGridItem}"/> representing the <paramref name="source"/> with sorting rules applied.</returns>
61
public
IQueryable
<TGridItem> ApplySorting(
IQueryable
<TGridItem> source) =>
IAsyncQueryExecutor.cs (10)
9
/// Provides methods for asynchronous evaluation of queries against an <see cref="
IQueryable
{T}" />.
14
/// Determines whether the <see cref="
IQueryable
{T}" /> is supported by this <see cref="IAsyncQueryExecutor"/> type.
17
/// <param name="queryable">An <see cref="
IQueryable
{T}" /> instance.</param>
19
bool IsSupported<T>(
IQueryable
<T> queryable);
22
/// Asynchronously counts the items in the <see cref="
IQueryable
{T}" />, if supported.
25
/// <param name="queryable">An <see cref="
IQueryable
{T}" /> instance.</param>
27
Task<int> CountAsync<T>(
IQueryable
<T> queryable);
30
/// Asynchronously materializes the <see cref="
IQueryable
{T}" /> as an array, if supported.
33
/// <param name="queryable">An <see cref="
IQueryable
{T}" /> instance.</param>
35
Task<T[]> ToArrayAsync<T>(
IQueryable
<T> queryable);
Infrastructure\AsyncQueryExecutorSupplier.cs (1)
28
public static IAsyncQueryExecutor? GetAsyncQueryExecutor<T>(IServiceProvider services,
IQueryable
<T>? queryable)
QuickGrid.razor.cs (2)
28
[Parameter] public
IQueryable
<TGridItem>? Items { get; set; }
403
var
result = request.ApplySorting(Items).Skip(request.StartIndex);
Microsoft.AspNetCore.Identity.EntityFrameworkCore (7)
RoleStore.cs (1)
383
public virtual
IQueryable
<TRole> Roles => Context.Set<TRole>();
UserOnlyStore.cs (2)
287
public override
IQueryable
<TUser> Users
515
var
query = from userclaims in UserClaims
UserStore.cs (4)
291
public override
IQueryable
<TUser> Users
414
var
query = from userRole in UserRoles
632
var
query = from userclaims in UserClaims
659
var
query = from userrole in UserRoles
Microsoft.AspNetCore.Identity.InMemory.Test (3)
InMemoryStore.cs (1)
161
public
IQueryable
<TRole> Roles
InMemoryUserStore.cs (2)
28
public
IQueryable
<TUser> Users
338
var
query = from user in Users
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
EnumerableWrapperProviderTest.cs (1)
13
[InlineData(typeof(
IQueryable
<SerializableError>),
XmlSerializerOutputFormatterTest.cs (1)
346
Enumerable.Range(1, 2).Select(i => "value" + i).AsQueryable(), typeof(
IQueryable
<string>), true };
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
157
new PredefinedTypeInfo(PredefinedType.PT_G_IQUERYABLE, typeof(System.Linq.
IQueryable
<>), "System.Linq.IQueryable`1"),
Microsoft.Extensions.Identity.Core (8)
IQueryableRoleStore.cs (3)
15
/// Returns an <see cref="
IQueryable
{T}"/> collection of roles.
17
/// <value>An <see cref="
IQueryable
{T}"/> collection of roles.</value>
18
IQueryable
<TRole> Roles { get; }
IQueryableUserStore.cs (3)
15
/// Returns an <see cref="
IQueryable
{T}"/> collection of users.
17
/// <value>An <see cref="
IQueryable
{T}"/> collection of users.</value>
18
IQueryable
<TUser> Users { get; }
RoleManager.cs (1)
105
public virtual
IQueryable
<TRole> Roles
UserManager.cs (1)
401
public virtual
IQueryable
<TUser> Users
Microsoft.Extensions.Identity.Stores (2)
RoleStoreBase.cs (1)
235
public abstract
IQueryable
<TRole> Roles
UserStoreBase.cs (1)
261
public abstract
IQueryable
<TUser> Users
netstandard (1)
netstandard.cs (1)
1035
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.
IQueryable
<>))]
System.ComponentModel.Composition (5)
System\ComponentModel\Composition\Primitives\ComposablePartCatalog.cs (5)
25
private volatile
IQueryable
<ComposablePartDefinition>? _queryableParts;
40
/// A <see cref="
IQueryable
{T}"/> of <see cref="ComposablePartDefinition"/> objects of the
52
public virtual
IQueryable
<ComposablePartDefinition> Parts
60
var
p = this.AsQueryable();
160
var
parts = Parts;
System.Core (1)
System.Core.cs (1)
173
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.
IQueryable
<>))]
System.Linq.Expressions (5)
System\Linq\IQueryable.cs (5)
59
/// Constructs an <see cref="
IQueryable
{T}"/> object that can evaluate the query represented by a specified expression tree.
62
/// <returns>An <see cref="
IQueryable
{T}"/> that can evaluate the query represented by the specified expression tree.</returns>
64
/// The <see cref="CreateQuery{TElement}"/> method is used to create new <see cref="
IQueryable
{T}"/> objects, given an expression tree. The query that is represented by the returned object is associated with a specific LINQ provider.
67
IQueryable
<TElement> CreateQuery<TElement>(Expression expression);
86
/// The <see cref="Execute{TElement}"/> method executes queries that return a single value (instead of an enumerable sequence of values). Expression trees that represent queries that return enumerable results are executed when the <see cref="
IQueryable
{T}"/> object that contains the expression tree is enumerated.
System.Linq.Queryable (519)
System\Linq\EnumerableQuery.cs (3)
67
Type? iqType = TypeHelper.FindGenericType(typeof(
IQueryable
<>), expression.Type);
73
IQueryable
<TElement> IQueryProvider.CreateQuery<TElement>(Expression expression)
77
if (!typeof(
IQueryable
<TElement>).IsAssignableFrom(expression.Type))
System\Linq\EnumerableRewriter.cs (2)
169
else if (genericType == typeof(
IQueryable
<>))
189
.Where(i => i.GenType == typeof(
IQueryable
<>) || i.GenType == typeof(IEnumerable<>))
System\Linq\Queryable.cs (514)
20
public static
IQueryable
<TElement> AsQueryable<TElement>(this IEnumerable<TElement> source)
24
return source as
IQueryable
<TElement> ?? new EnumerableQuery<TElement>(source);
48
public static
IQueryable
<TSource> Where<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate)
56
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>,
IQueryable
<TSource>>(Where).Method,
61
public static
IQueryable
<TSource> Where<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, int, bool>> predicate)
69
new Func<
IQueryable
<TSource>, Expression<Func<TSource, int, bool>>,
IQueryable
<TSource>>(Where).Method,
74
public static
IQueryable
<TResult> OfType<TResult>(this IQueryable source)
81
new Func<IQueryable,
IQueryable
<TResult>>(OfType<TResult>).Method,
86
public static
IQueryable
<TResult> Cast<TResult>(this IQueryable source)
93
new Func<IQueryable,
IQueryable
<TResult>>(Cast<TResult>).Method,
98
public static
IQueryable
<TResult> Select<TSource, TResult>(this
IQueryable
<TSource> source, Expression<Func<TSource, TResult>> selector)
106
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TResult>>,
IQueryable
<TResult>>(Select).Method,
111
public static
IQueryable
<TResult> Select<TSource, TResult>(this
IQueryable
<TSource> source, Expression<Func<TSource, int, TResult>> selector)
119
new Func<
IQueryable
<TSource>, Expression<Func<TSource, int, TResult>>,
IQueryable
<TResult>>(Select).Method,
124
public static
IQueryable
<TResult> SelectMany<TSource, TResult>(this
IQueryable
<TSource> source, Expression<Func<TSource, IEnumerable<TResult>>> selector)
132
new Func<
IQueryable
<TSource>, Expression<Func<TSource, IEnumerable<TResult>>>,
IQueryable
<TResult>>(SelectMany).Method,
137
public static
IQueryable
<TResult> SelectMany<TSource, TResult>(this
IQueryable
<TSource> source, Expression<Func<TSource, int, IEnumerable<TResult>>> selector)
145
new Func<
IQueryable
<TSource>, Expression<Func<TSource, int, IEnumerable<TResult>>>,
IQueryable
<TResult>>(SelectMany).Method,
150
public static
IQueryable
<TResult> SelectMany<TSource, TCollection, TResult>(this
IQueryable
<TSource> source, Expression<Func<TSource, int, IEnumerable<TCollection>>> collectionSelector, Expression<Func<TSource, TCollection, TResult>> resultSelector)
159
new Func<
IQueryable
<TSource>, Expression<Func<TSource, int, IEnumerable<TCollection>>>, Expression<Func<TSource, TCollection, TResult>>,
IQueryable
<TResult>>(SelectMany).Method,
164
public static
IQueryable
<TResult> SelectMany<TSource, TCollection, TResult>(this
IQueryable
<TSource> source, Expression<Func<TSource, IEnumerable<TCollection>>> collectionSelector, Expression<Func<TSource, TCollection, TResult>> resultSelector)
173
new Func<
IQueryable
<TSource>, Expression<Func<TSource, IEnumerable<TCollection>>>, Expression<Func<TSource, TCollection, TResult>>,
IQueryable
<TResult>>(SelectMany).Method,
179
IQueryable
<TSource>? q = source as
IQueryable
<TSource>;
199
/// The following code example demonstrates how to use <see cref="Join{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" /> to perform an inner join of two sequences based on a common key.
263
/// The <see cref="Join{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" /> method
265
/// <see cref="Join{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" />
271
/// <see cref="Join{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" />
281
public static
IQueryable
<TResult> Join<TOuter, TInner, TKey, TResult>(this
IQueryable
<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, TInner, TResult>> resultSelector)
292
new Func<
IQueryable
<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter, TInner, TResult>>,
IQueryable
<TResult>>(Join).Method,
313
/// The following code example demonstrates how to use <see cref="Join{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> to perform an inner join of two sequences based on a common key.
378
/// The <see cref="Join{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> method
380
/// <see cref="Join{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" />
386
/// <see cref="Join{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" />
396
public static
IQueryable
<TResult> Join<TOuter, TInner, TKey, TResult>(this
IQueryable
<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, TInner, TResult>> resultSelector, IEqualityComparer<TKey>? comparer)
407
new Func<
IQueryable
<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter, TInner, TResult>>, IEqualityComparer<TKey>,
IQueryable
<TResult>>(Join).Method,
412
public static
IQueryable
<TResult> GroupJoin<TOuter, TInner, TKey, TResult>(this
IQueryable
<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, IEnumerable<TInner>, TResult>> resultSelector)
423
new Func<
IQueryable
<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter, IEnumerable<TInner>, TResult>>,
IQueryable
<TResult>>(GroupJoin).Method,
428
public static
IQueryable
<TResult> GroupJoin<TOuter, TInner, TKey, TResult>(this
IQueryable
<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, IEnumerable<TInner>, TResult>> resultSelector, IEqualityComparer<TKey>? comparer)
439
new Func<
IQueryable
<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter, IEnumerable<TInner>, TResult>>, IEqualityComparer<TKey>,
IQueryable
<TResult>>(GroupJoin).Method,
459
/// The following code example demonstrates how to use <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> to perform an inner join of two sequences based on a common key.
524
/// The <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" /> method
526
/// <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" />
532
/// <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" />
542
public static
IQueryable
<TResult> LeftJoin<TOuter, TInner, TKey, TResult>(this
IQueryable
<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, TInner?, TResult>> resultSelector)
553
new Func<
IQueryable
<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter, TInner?, TResult>>,
IQueryable
<TResult>>(LeftJoin).Method,
574
/// The following code example demonstrates how to use <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> to perform an inner join of two sequences based on a common key.
639
/// The <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> method
641
/// <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" />
647
/// <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" />
657
public static
IQueryable
<TResult> LeftJoin<TOuter, TInner, TKey, TResult>(this
IQueryable
<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, TInner?, TResult>> resultSelector, IEqualityComparer<TKey>? comparer)
668
new Func<
IQueryable
<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter, TInner?, TResult>>, IEqualityComparer<TKey>,
IQueryable
<TResult>>(LeftJoin).Method,
684
/// The <see cref="Order{T}(
IQueryable
{T})"/> method generates a <see cref="MethodCallExpression"/> that represents
697
public static IOrderedQueryable<T> Order<T>(this
IQueryable
<T> source)
704
new Func<
IQueryable
<T>, IOrderedQueryable<T>>(Order).Method,
721
/// The <see cref="Order{T}(
IQueryable
{T})"/> method generates a <see cref="MethodCallExpression"/> that represents
734
public static IOrderedQueryable<T> Order<T>(this
IQueryable
<T> source, IComparer<T> comparer)
741
new Func<
IQueryable
<T>, IComparer<T>, IOrderedQueryable<T>>(Order).Method,
746
public static IOrderedQueryable<TSource> OrderBy<TSource, TKey>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector)
754
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, IOrderedQueryable<TSource>>(OrderBy).Method,
759
public static IOrderedQueryable<TSource> OrderBy<TSource, TKey>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer)
767
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, IComparer<TKey>, IOrderedQueryable<TSource>>(OrderBy).Method,
783
/// The <see cref="Order{T}(
IQueryable
{T})"/> method generates a <see cref="MethodCallExpression"/> that represents
796
public static IOrderedQueryable<T> OrderDescending<T>(this
IQueryable
<T> source)
803
new Func<
IQueryable
<T>, IOrderedQueryable<T>>(OrderDescending).Method,
820
/// The <see cref="Order{T}(
IQueryable
{T})"/> method generates a <see cref="MethodCallExpression"/> that represents
833
public static IOrderedQueryable<T> OrderDescending<T>(this
IQueryable
<T> source, IComparer<T> comparer)
840
new Func<
IQueryable
<T>, IComparer<T>, IOrderedQueryable<T>>(OrderDescending).Method,
845
public static IOrderedQueryable<TSource> OrderByDescending<TSource, TKey>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector)
853
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, IOrderedQueryable<TSource>>(OrderByDescending).Method,
858
public static IOrderedQueryable<TSource> OrderByDescending<TSource, TKey>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer)
866
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, IComparer<TKey>, IOrderedQueryable<TSource>>(OrderByDescending).Method,
886
/// The following code example demonstrates how to use <see cref="RightJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> to perform an inner join of two sequences based on a common key.
950
/// The <see cref="RightJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" /> method
952
/// <see cref="RightJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" />
958
/// <see cref="RightJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" />
968
public static
IQueryable
<TResult> RightJoin<TOuter, TInner, TKey, TResult>(this
IQueryable
<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter?, TInner, TResult>> resultSelector)
979
new Func<
IQueryable
<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter?, TInner, TResult>>,
IQueryable
<TResult>>(RightJoin).Method,
1000
/// The following code example demonstrates how to use <see cref="RightJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> to perform an inner join of two sequences based on a common key.
1064
/// The <see cref="RightJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> method
1066
/// <see cref="RightJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" />
1072
/// <see cref="RightJoin{TOuter, TInner, TKey, TResult}(
IQueryable
{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" />
1082
public static
IQueryable
<TResult> RightJoin<TOuter, TInner, TKey, TResult>(this
IQueryable
<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter?, TInner, TResult>> resultSelector, IEqualityComparer<TKey>? comparer)
1093
new Func<
IQueryable
<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter?, TInner, TResult>>, IEqualityComparer<TKey>,
IQueryable
<TResult>>(RightJoin).Method,
1150
public static
IQueryable
<TSource> Take<TSource>(this
IQueryable
<TSource> source, int count)
1157
new Func<
IQueryable
<TSource>, int,
IQueryable
<TSource>>(Take).Method,
1166
/// <returns>An <see cref="
IQueryable
{T}" /> that contains the specified <paramref name="range" /> of elements from the <paramref name="source" /> sequence.</returns>
1168
public static
IQueryable
<TSource> Take<TSource>(this
IQueryable
<TSource> source, Range range)
1175
new Func<
IQueryable
<TSource>, Range,
IQueryable
<TSource>>(Take).Method,
1180
public static
IQueryable
<TSource> TakeWhile<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate)
1188
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>,
IQueryable
<TSource>>(TakeWhile).Method,
1193
public static
IQueryable
<TSource> TakeWhile<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, int, bool>> predicate)
1201
new Func<
IQueryable
<TSource>, Expression<Func<TSource, int, bool>>,
IQueryable
<TSource>>(TakeWhile).Method,
1206
public static
IQueryable
<TSource> Skip<TSource>(this
IQueryable
<TSource> source, int count)
1213
new Func<
IQueryable
<TSource>, int,
IQueryable
<TSource>>(Skip).Method,
1218
public static
IQueryable
<TSource> SkipWhile<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate)
1226
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>,
IQueryable
<TSource>>(SkipWhile).Method,
1231
public static
IQueryable
<TSource> SkipWhile<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, int, bool>> predicate)
1239
new Func<
IQueryable
<TSource>, Expression<Func<TSource, int, bool>>,
IQueryable
<TSource>>(SkipWhile).Method,
1244
public static
IQueryable
<IGrouping<TKey, TSource>> GroupBy<TSource, TKey>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector)
1252
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>,
IQueryable
<IGrouping<TKey, TSource>>>(GroupBy).Method,
1257
public static
IQueryable
<IGrouping<TKey, TElement>> GroupBy<TSource, TKey, TElement>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector)
1266
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>,
IQueryable
<IGrouping<TKey, TElement>>>(GroupBy).Method,
1271
public static
IQueryable
<IGrouping<TKey, TSource>> GroupBy<TSource, TKey>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer)
1279
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>,
IQueryable
<IGrouping<TKey, TSource>>>(GroupBy).Method,
1284
public static
IQueryable
<IGrouping<TKey, TElement>> GroupBy<TSource, TKey, TElement>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector, IEqualityComparer<TKey>? comparer)
1293
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>, IEqualityComparer<TKey>,
IQueryable
<IGrouping<TKey, TElement>>>(GroupBy).Method,
1298
public static
IQueryable
<TResult> GroupBy<TSource, TKey, TElement, TResult>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector, Expression<Func<TKey, IEnumerable<TElement>, TResult>> resultSelector)
1308
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>, Expression<Func<TKey, IEnumerable<TElement>, TResult>>,
IQueryable
<TResult>>(GroupBy).Method,
1313
public static
IQueryable
<TResult> GroupBy<TSource, TKey, TResult>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TKey, IEnumerable<TSource>, TResult>> resultSelector)
1322
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TKey, IEnumerable<TSource>, TResult>>,
IQueryable
<TResult>>(GroupBy).Method,
1327
public static
IQueryable
<TResult> GroupBy<TSource, TKey, TResult>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TKey, IEnumerable<TSource>, TResult>> resultSelector, IEqualityComparer<TKey>? comparer)
1336
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TKey, IEnumerable<TSource>, TResult>>, IEqualityComparer<TKey>,
IQueryable
<TResult>>(GroupBy).Method,
1341
public static
IQueryable
<TResult> GroupBy<TSource, TKey, TElement, TResult>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector, Expression<Func<TKey, IEnumerable<TElement>, TResult>> resultSelector, IEqualityComparer<TKey>? comparer)
1351
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>, Expression<Func<TKey, IEnumerable<TElement>, TResult>>, IEqualityComparer<TKey>,
IQueryable
<TResult>>(GroupBy).Method,
1356
public static
IQueryable
<TSource> Distinct<TSource>(this
IQueryable
<TSource> source)
1363
new Func<
IQueryable
<TSource>,
IQueryable
<TSource>>(Distinct).Method,
1368
public static
IQueryable
<TSource> Distinct<TSource>(this
IQueryable
<TSource> source, IEqualityComparer<TSource>? comparer)
1375
new Func<
IQueryable
<TSource>, IEqualityComparer<TSource>,
IQueryable
<TSource>>(Distinct).Method,
1384
/// <returns>An <see cref="
IQueryable
{T}" /> that contains distinct elements from the source sequence.</returns>
1387
public static
IQueryable
<TSource> DistinctBy<TSource, TKey>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector)
1395
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>,
IQueryable
<TSource>>(DistinctBy).Method,
1405
/// <returns>An <see cref="
IQueryable
{T}" /> that contains distinct elements from the source sequence.</returns>
1408
public static
IQueryable
<TSource> DistinctBy<TSource, TKey>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer)
1416
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>,
IQueryable
<TSource>>(DistinctBy).Method,
1424
/// <returns>An <see cref="
IQueryable
{T}"/> that contains the elements the input sequence split into chunks of size <paramref name="size"/>.</returns>
1432
public static
IQueryable
<TSource[]> Chunk<TSource>(this
IQueryable
<TSource> source, int size)
1439
new Func<
IQueryable
<TSource>, int,
IQueryable
<TSource[]>>(Chunk).Method,
1444
public static
IQueryable
<TSource> Concat<TSource>(this
IQueryable
<TSource> source1, IEnumerable<TSource> source2)
1452
new Func<
IQueryable
<TSource>, IEnumerable<TSource>,
IQueryable
<TSource>>(Concat).Method,
1457
public static
IQueryable
<(TFirst First, TSecond Second)> Zip<TFirst, TSecond>(this
IQueryable
<TFirst> source1, IEnumerable<TSecond> source2)
1465
new Func<
IQueryable
<TFirst>, IEnumerable<TSecond>,
IQueryable
<(TFirst, TSecond)>>(Zip).Method,
1470
public static
IQueryable
<TResult> Zip<TFirst, TSecond, TResult>(this
IQueryable
<TFirst> source1, IEnumerable<TSecond> source2, Expression<Func<TFirst, TSecond, TResult>> resultSelector)
1479
new Func<
IQueryable
<TFirst>, IEnumerable<TSecond>, Expression<Func<TFirst, TSecond, TResult>>,
IQueryable
<TResult>>(Zip).Method,
1494
public static
IQueryable
<(TFirst First, TSecond Second, TThird Third)> Zip<TFirst, TSecond, TThird>(this
IQueryable
<TFirst> source1, IEnumerable<TSecond> source2, IEnumerable<TThird> source3)
1503
new Func<
IQueryable
<TFirst>, IEnumerable<TSecond>, IEnumerable<TThird>,
IQueryable
<(TFirst, TSecond, TThird)>>(Zip).Method,
1508
public static
IQueryable
<TSource> Union<TSource>(this
IQueryable
<TSource> source1, IEnumerable<TSource> source2)
1516
new Func<
IQueryable
<TSource>, IEnumerable<TSource>,
IQueryable
<TSource>>(Union).Method,
1521
public static
IQueryable
<TSource> Union<TSource>(this
IQueryable
<TSource> source1, IEnumerable<TSource> source2, IEqualityComparer<TSource>? comparer)
1529
new Func<
IQueryable
<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>,
IQueryable
<TSource>>(Union).Method,
1538
/// <param name="source1">An <see cref="
IQueryable
{T}" /> whose distinct elements form the first set for the union.</param>
1541
/// <returns>An <see cref="
IQueryable
{T}" /> that contains the elements from both input sequences, excluding duplicates.</returns>
1544
public static
IQueryable
<TSource> UnionBy<TSource, TKey>(this
IQueryable
<TSource> source1, IEnumerable<TSource> source2, Expression<Func<TSource, TKey>> keySelector)
1553
new Func<
IQueryable
<TSource>, IEnumerable<TSource>, Expression<Func<TSource, TKey>>,
IQueryable
<TSource>>(UnionBy).Method,
1560
/// <param name="source1">An <see cref="
IQueryable
{T}" /> whose distinct elements form the first set for the union.</param>
1564
/// <returns>An <see cref="
IQueryable
{T}" /> that contains the elements from both input sequences, excluding duplicates.</returns>
1567
public static
IQueryable
<TSource> UnionBy<TSource, TKey>(this
IQueryable
<TSource> source1, IEnumerable<TSource> source2, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer)
1576
new Func<
IQueryable
<TSource>, IEnumerable<TSource>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>,
IQueryable
<TSource>>(UnionBy).Method,
1585
/// <param name="source">An <see cref="
IQueryable
{T}" /> to return an element from.</param>
1589
public static
IQueryable
<(int Index, TSource Item)> Index<TSource>(this
IQueryable
<TSource> source)
1596
new Func<
IQueryable
<TSource>,
IQueryable
<(int Index, TSource Item)>>(Index).Method,
1601
public static
IQueryable
<TSource> Intersect<TSource>(this
IQueryable
<TSource> source1, IEnumerable<TSource> source2)
1609
new Func<
IQueryable
<TSource>, IEnumerable<TSource>,
IQueryable
<TSource>>(Intersect).Method,
1614
public static
IQueryable
<TSource> Intersect<TSource>(this
IQueryable
<TSource> source1, IEnumerable<TSource> source2, IEqualityComparer<TSource>? comparer)
1622
new Func<
IQueryable
<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>,
IQueryable
<TSource>>(Intersect).Method,
1631
/// <param name="source1">An <see cref="
IQueryable
{T}" /> whose distinct elements that also appear in <paramref name="source2" /> will be returned.</param>
1637
public static
IQueryable
<TSource> IntersectBy<TSource, TKey>(this
IQueryable
<TSource> source1, IEnumerable<TKey> source2, Expression<Func<TSource, TKey>> keySelector)
1646
new Func<
IQueryable
<TSource>, IEnumerable<TKey>, Expression<Func<TSource, TKey>>,
IQueryable
<TSource>>(IntersectBy).Method,
1655
/// <param name="source1">An <see cref="
IQueryable
{T}" /> whose distinct elements that also appear in <paramref name="source2" /> will be returned.</param>
1662
public static
IQueryable
<TSource> IntersectBy<TSource, TKey>(this
IQueryable
<TSource> source1, IEnumerable<TKey> source2, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer)
1671
new Func<
IQueryable
<TSource>, IEnumerable<TKey>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>,
IQueryable
<TSource>>(IntersectBy).Method,
1679
public static
IQueryable
<TSource> Except<TSource>(this
IQueryable
<TSource> source1, IEnumerable<TSource> source2)
1687
new Func<
IQueryable
<TSource>, IEnumerable<TSource>,
IQueryable
<TSource>>(Except).Method,
1692
public static
IQueryable
<TSource> Except<TSource>(this
IQueryable
<TSource> source1, IEnumerable<TSource> source2, IEqualityComparer<TSource>? comparer)
1700
new Func<
IQueryable
<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>,
IQueryable
<TSource>>(Except).Method,
1711
/// <param name="source1">An <see cref="
IQueryable
{TSource}" /> whose keys that are not also in <paramref name="source2"/> will be returned.</param>
1714
/// <returns>A <see cref="
IQueryable
{TSource}" /> that contains the set difference of the elements of two sequences.</returns>
1716
public static
IQueryable
<TSource> ExceptBy<TSource, TKey>(this
IQueryable
<TSource> source1, IEnumerable<TKey> source2, Expression<Func<TSource, TKey>> keySelector)
1725
new Func<
IQueryable
<TSource>, IEnumerable<TKey>, Expression<Func<TSource, TKey>>,
IQueryable
<TSource>>(ExceptBy).Method,
1736
/// <param name="source1">An <see cref="
IQueryable
{TSource}" /> whose keys that are not also in <paramref name="source2"/> will be returned.</param>
1740
/// <returns>A <see cref="
IQueryable
{TSource}" /> that contains the set difference of the elements of two sequences.</returns>
1742
public static
IQueryable
<TSource> ExceptBy<TSource, TKey>(this
IQueryable
<TSource> source1, IEnumerable<TKey> source2, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer)
1751
new Func<
IQueryable
<TSource>, IEnumerable<TKey>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>,
IQueryable
<TSource>>(ExceptBy).Method,
1759
public static TSource First<TSource>(this
IQueryable
<TSource> source)
1766
new Func<
IQueryable
<TSource>, TSource>(First).Method,
1771
public static TSource First<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate)
1779
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>, TSource>(First).Method,
1784
public static TSource? FirstOrDefault<TSource>(this
IQueryable
<TSource> source)
1791
new Func<
IQueryable
<TSource>, TSource?>(FirstOrDefault).Method,
1802
public static TSource FirstOrDefault<TSource>(this
IQueryable
<TSource> source, TSource defaultValue)
1809
new Func<
IQueryable
<TSource>, TSource, TSource>(FirstOrDefault).Method,
1814
public static TSource? FirstOrDefault<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate)
1822
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>, TSource?>(FirstOrDefault).Method,
1834
public static TSource FirstOrDefault<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate, TSource defaultValue)
1842
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>, TSource, TSource>(FirstOrDefault).Method,
1847
public static TSource Last<TSource>(this
IQueryable
<TSource> source)
1854
new Func<
IQueryable
<TSource>, TSource>(Last).Method,
1859
public static TSource Last<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate)
1867
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>, TSource>(Last).Method,
1872
public static TSource? LastOrDefault<TSource>(this
IQueryable
<TSource> source)
1879
new Func<
IQueryable
<TSource>, TSource?>(LastOrDefault).Method,
1890
public static TSource LastOrDefault<TSource>(this
IQueryable
<TSource> source, TSource defaultValue)
1897
new Func<
IQueryable
<TSource>, TSource, TSource>(LastOrDefault).Method,
1902
public static TSource? LastOrDefault<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate)
1910
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>, TSource?>(LastOrDefault).Method,
1922
public static TSource LastOrDefault<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate, TSource defaultValue)
1930
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>, TSource, TSource>(LastOrDefault).Method,
1936
public static TSource Single<TSource>(this
IQueryable
<TSource> source)
1943
new Func<
IQueryable
<TSource>, TSource>(Single).Method,
1948
public static TSource Single<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate)
1956
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>, TSource>(Single).Method,
1961
public static TSource? SingleOrDefault<TSource>(this
IQueryable
<TSource> source)
1968
new Func<
IQueryable
<TSource>, TSource?>(SingleOrDefault).Method,
1980
public static TSource SingleOrDefault<TSource>(this
IQueryable
<TSource> source, TSource defaultValue)
1987
new Func<
IQueryable
<TSource>, TSource, TSource>(SingleOrDefault).Method,
1992
public static TSource? SingleOrDefault<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate)
2000
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>, TSource?>(SingleOrDefault).Method,
2013
public static TSource SingleOrDefault<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate, TSource defaultValue)
2021
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>, TSource, TSource>(SingleOrDefault).Method,
2026
public static TSource ElementAt<TSource>(this
IQueryable
<TSource> source, int index)
2036
new Func<
IQueryable
<TSource>, int, TSource>(ElementAt).Method,
2042
/// <param name="source">An <see cref="
IQueryable
{T}" /> to return an element from.</param>
2048
public static TSource ElementAt<TSource>(this
IQueryable
<TSource> source, Index index)
2058
new Func<
IQueryable
<TSource>, Index, TSource>(ElementAt).Method,
2063
public static TSource? ElementAtOrDefault<TSource>(this
IQueryable
<TSource> source, int index)
2070
new Func<
IQueryable
<TSource>, int, TSource?>(ElementAtOrDefault).Method,
2076
/// <param name="source">An <see cref="
IQueryable
{T}" /> to return an element from.</param>
2081
public static TSource? ElementAtOrDefault<TSource>(this
IQueryable
<TSource> source, Index index)
2088
new Func<
IQueryable
<TSource>, Index, TSource?>(ElementAtOrDefault).Method,
2093
public static
IQueryable
<TSource?> DefaultIfEmpty<TSource>(this
IQueryable
<TSource> source)
2100
new Func<
IQueryable
<TSource>,
IQueryable
<TSource?>>(DefaultIfEmpty).Method,
2105
public static
IQueryable
<TSource> DefaultIfEmpty<TSource>(this
IQueryable
<TSource> source, TSource defaultValue)
2112
new Func<
IQueryable
<TSource>, TSource,
IQueryable
<TSource?>>(DefaultIfEmpty).Method,
2117
public static bool Contains<TSource>(this
IQueryable
<TSource> source, TSource item)
2124
new Func<
IQueryable
<TSource>, TSource, bool>(Contains).Method,
2129
public static bool Contains<TSource>(this
IQueryable
<TSource> source, TSource item, IEqualityComparer<TSource>? comparer)
2136
new Func<
IQueryable
<TSource>, TSource, IEqualityComparer<TSource>, bool>(Contains).Method,
2141
public static
IQueryable
<TSource> Reverse<TSource>(this
IQueryable
<TSource> source)
2148
new Func<
IQueryable
<TSource>,
IQueryable
<TSource>>(Reverse).Method,
2153
public static bool SequenceEqual<TSource>(this
IQueryable
<TSource> source1, IEnumerable<TSource> source2)
2161
new Func<
IQueryable
<TSource>, IEnumerable<TSource>, bool>(SequenceEqual).Method,
2166
public static bool SequenceEqual<TSource>(this
IQueryable
<TSource> source1, IEnumerable<TSource> source2, IEqualityComparer<TSource>? comparer)
2174
new Func<
IQueryable
<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>, bool>(SequenceEqual).Method,
2181
public static
IQueryable
<TSource> Shuffle<TSource>(this
IQueryable
<TSource> source)
2188
new Func<
IQueryable
<TSource>,
IQueryable
<TSource>>(Shuffle).Method,
2193
public static bool Any<TSource>(this
IQueryable
<TSource> source)
2200
new Func<
IQueryable
<TSource>, bool>(Any).Method,
2205
public static bool Any<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate)
2213
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>, bool>(Any).Method,
2218
public static bool All<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate)
2226
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>, bool>(All).Method,
2231
public static int Count<TSource>(this
IQueryable
<TSource> source)
2238
new Func<
IQueryable
<TSource>, int>(Count).Method,
2243
public static int Count<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate)
2251
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>, int>(Count).Method,
2261
/// <returns>An <see cref="
IQueryable
{T}" /> that contains count for each distinct elements from the source sequence as a <see cref="KeyValuePair{TKey, TValue}"/> object.</returns>
2264
public static
IQueryable
<KeyValuePair<TKey, int>> CountBy<TSource, TKey>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer = null) where TKey : notnull
2272
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>,
IQueryable
<KeyValuePair<TKey, int>>>(CountBy).Method,
2277
public static long LongCount<TSource>(this
IQueryable
<TSource> source)
2284
new Func<
IQueryable
<TSource>, long>(LongCount).Method,
2289
public static long LongCount<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, bool>> predicate)
2297
new Func<
IQueryable
<TSource>, Expression<Func<TSource, bool>>, long>(LongCount).Method,
2302
public static TSource? Min<TSource>(this
IQueryable
<TSource> source)
2309
new Func<
IQueryable
<TSource>, TSource?>(Min).Method,
2313
/// <summary>Returns the minimum value in a generic <see cref="System.Linq.
IQueryable
{T}" />.</summary>
2321
public static TSource? Min<TSource>(this
IQueryable
<TSource> source, IComparer<TSource>? comparer)
2328
new Func<
IQueryable
<TSource>, IComparer<TSource>, TSource?>(Min).Method,
2334
public static TResult? Min<TSource, TResult>(this
IQueryable
<TSource> source, Expression<Func<TSource, TResult>> selector)
2342
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TResult>>, TResult?>(Min).Method,
2346
/// <summary>Returns the minimum value in a generic <see cref="
IQueryable
{T}"/> according to a specified key selector function.</summary>
2355
public static TSource? MinBy<TSource, TKey>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector)
2363
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, TSource?>(MinBy).Method,
2368
/// <summary>Returns the minimum value in a generic <see cref="
IQueryable
{T}"/> according to a specified key selector function.</summary>
2381
public static TSource? MinBy<TSource, TKey>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TSource>? comparer)
2389
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, IComparer<TSource>, TSource?>(MinBy).Method,
2395
/// <summary>Returns the minimum value in a generic <see cref="
IQueryable
{T}"/> according to a specified key selector function.</summary>
2405
public static TSource? MinBy<TSource, TKey>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer)
2413
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, IComparer<TKey>, TSource?>(MinBy).Method,
2420
public static TSource? Max<TSource>(this
IQueryable
<TSource> source)
2427
new Func<
IQueryable
<TSource>, TSource?>(Max).Method,
2431
/// <summary>Returns the maximum value in a generic <see cref="System.Linq.
IQueryable
{T}" />.</summary>
2438
public static TSource? Max<TSource>(this
IQueryable
<TSource> source, IComparer<TSource>? comparer)
2445
new Func<
IQueryable
<TSource>, IComparer<TSource>, TSource?>(Max).Method,
2451
public static TResult? Max<TSource, TResult>(this
IQueryable
<TSource> source, Expression<Func<TSource, TResult>> selector)
2459
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TResult>>, TResult?>(Max).Method,
2463
/// <summary>Returns the maximum value in a generic <see cref="
IQueryable
{T}"/> according to a specified key selector function.</summary>
2472
public static TSource? MaxBy<TSource, TKey>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector)
2480
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, TSource?>(MaxBy).Method,
2485
/// <summary>Returns the maximum value in a generic <see cref="
IQueryable
{T}"/> according to a specified key selector function.</summary>
2498
public static TSource? MaxBy<TSource, TKey>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TSource>? comparer)
2506
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, IComparer<TSource>, TSource?>(MaxBy).Method,
2512
/// <summary>Returns the maximum value in a generic <see cref="
IQueryable
{T}"/> according to a specified key selector function.</summary>
2522
public static TSource? MaxBy<TSource, TKey>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer)
2530
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, IComparer<TKey>, TSource?>(MaxBy).Method,
2537
public static int Sum(this
IQueryable
<int> source)
2544
new Func<
IQueryable
<int>, int>(Sum).Method,
2549
public static int? Sum(this
IQueryable
<int?> source)
2556
new Func<
IQueryable
<int?>, int?>(Sum).Method,
2561
public static long Sum(this
IQueryable
<long> source)
2568
new Func<
IQueryable
<long>, long>(Sum).Method,
2573
public static long? Sum(this
IQueryable
<long?> source)
2580
new Func<
IQueryable
<long?>, long?>(Sum).Method,
2585
public static float Sum(this
IQueryable
<float> source)
2592
new Func<
IQueryable
<float>, float>(Sum).Method,
2597
public static float? Sum(this
IQueryable
<float?> source)
2604
new Func<
IQueryable
<float?>, float?>(Sum).Method,
2609
public static double Sum(this
IQueryable
<double> source)
2616
new Func<
IQueryable
<double>, double>(Sum).Method,
2621
public static double? Sum(this
IQueryable
<double?> source)
2628
new Func<
IQueryable
<double?>, double?>(Sum).Method,
2633
public static decimal Sum(this
IQueryable
<decimal> source)
2640
new Func<
IQueryable
<decimal>, decimal>(Sum).Method,
2645
public static decimal? Sum(this
IQueryable
<decimal?> source)
2652
new Func<
IQueryable
<decimal?>, decimal?>(Sum).Method,
2657
public static int Sum<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, int>> selector)
2665
new Func<
IQueryable
<TSource>, Expression<Func<TSource, int>>, int>(Sum).Method,
2670
public static int? Sum<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, int?>> selector)
2678
new Func<
IQueryable
<TSource>, Expression<Func<TSource, int?>>, int?>(Sum).Method,
2683
public static long Sum<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, long>> selector)
2691
new Func<
IQueryable
<TSource>, Expression<Func<TSource, long>>, long>(Sum).Method,
2696
public static long? Sum<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, long?>> selector)
2704
new Func<
IQueryable
<TSource>, Expression<Func<TSource, long?>>, long?>(Sum).Method,
2709
public static float Sum<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, float>> selector)
2717
new Func<
IQueryable
<TSource>, Expression<Func<TSource, float>>, float>(Sum).Method,
2722
public static float? Sum<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, float?>> selector)
2730
new Func<
IQueryable
<TSource>, Expression<Func<TSource, float?>>, float?>(Sum).Method,
2735
public static double Sum<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, double>> selector)
2743
new Func<
IQueryable
<TSource>, Expression<Func<TSource, double>>, double>(Sum).Method,
2748
public static double? Sum<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, double?>> selector)
2756
new Func<
IQueryable
<TSource>, Expression<Func<TSource, double?>>, double?>(Sum).Method,
2761
public static decimal Sum<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, decimal>> selector)
2769
new Func<
IQueryable
<TSource>, Expression<Func<TSource, decimal>>, decimal>(Sum).Method,
2774
public static decimal? Sum<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, decimal?>> selector)
2782
new Func<
IQueryable
<TSource>, Expression<Func<TSource, decimal?>>, decimal?>(Sum).Method,
2787
public static double Average(this
IQueryable
<int> source)
2794
new Func<
IQueryable
<int>, double>(Average).Method,
2799
public static double? Average(this
IQueryable
<int?> source)
2806
new Func<
IQueryable
<int?>, double?>(Average).Method,
2811
public static double Average(this
IQueryable
<long> source)
2818
new Func<
IQueryable
<long>, double>(Average).Method,
2823
public static double? Average(this
IQueryable
<long?> source)
2830
new Func<
IQueryable
<long?>, double?>(Average).Method,
2835
public static float Average(this
IQueryable
<float> source)
2842
new Func<
IQueryable
<float>, float>(Average).Method,
2847
public static float? Average(this
IQueryable
<float?> source)
2854
new Func<
IQueryable
<float?>, float?>(Average).Method,
2859
public static double Average(this
IQueryable
<double> source)
2866
new Func<
IQueryable
<double>, double>(Average).Method,
2871
public static double? Average(this
IQueryable
<double?> source)
2878
new Func<
IQueryable
<double?>, double?>(Average).Method,
2883
public static decimal Average(this
IQueryable
<decimal> source)
2890
new Func<
IQueryable
<decimal>, decimal>(Average).Method,
2895
public static decimal? Average(this
IQueryable
<decimal?> source)
2902
new Func<
IQueryable
<decimal?>, decimal?>(Average).Method,
2907
public static double Average<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, int>> selector)
2915
new Func<
IQueryable
<TSource>, Expression<Func<TSource, int>>, double>(Average).Method,
2920
public static double? Average<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, int?>> selector)
2928
new Func<
IQueryable
<TSource>, Expression<Func<TSource, int?>>, double?>(Average).Method,
2933
public static float Average<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, float>> selector)
2941
new Func<
IQueryable
<TSource>, Expression<Func<TSource, float>>, float>(Average).Method,
2946
public static float? Average<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, float?>> selector)
2954
new Func<
IQueryable
<TSource>, Expression<Func<TSource, float?>>, float?>(Average).Method,
2959
public static double Average<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, long>> selector)
2967
new Func<
IQueryable
<TSource>, Expression<Func<TSource, long>>, double>(Average).Method,
2972
public static double? Average<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, long?>> selector)
2980
new Func<
IQueryable
<TSource>, Expression<Func<TSource, long?>>, double?>(Average).Method,
2985
public static double Average<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, double>> selector)
2993
new Func<
IQueryable
<TSource>, Expression<Func<TSource, double>>, double>(Average).Method,
2998
public static double? Average<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, double?>> selector)
3006
new Func<
IQueryable
<TSource>, Expression<Func<TSource, double?>>, double?>(Average).Method,
3011
public static decimal Average<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, decimal>> selector)
3019
new Func<
IQueryable
<TSource>, Expression<Func<TSource, decimal>>, decimal>(Average).Method,
3024
public static decimal? Average<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, decimal?>> selector)
3032
new Func<
IQueryable
<TSource>, Expression<Func<TSource, decimal?>>, decimal?>(Average).Method,
3037
public static TSource Aggregate<TSource>(this
IQueryable
<TSource> source, Expression<Func<TSource, TSource, TSource>> func)
3045
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TSource, TSource>>, TSource>(Aggregate).Method,
3050
public static TAccumulate Aggregate<TSource, TAccumulate>(this
IQueryable
<TSource> source, TAccumulate seed, Expression<Func<TAccumulate, TSource, TAccumulate>> func)
3058
new Func<
IQueryable
<TSource>, TAccumulate, Expression<Func<TAccumulate, TSource, TAccumulate>>, TAccumulate>(Aggregate).Method,
3063
public static TResult Aggregate<TSource, TAccumulate, TResult>(this
IQueryable
<TSource> source, TAccumulate seed, Expression<Func<TAccumulate, TSource, TAccumulate>> func, Expression<Func<TAccumulate, TResult>> selector)
3072
new Func<
IQueryable
<TSource>, TAccumulate, Expression<Func<TAccumulate, TSource, TAccumulate>>, Expression<Func<TAccumulate, TResult>>, TResult>(Aggregate).Method,
3082
/// <param name="source">An <see cref="
IQueryable
{T}"/> to aggregate over.</param>
3089
/// This method is comparable to the <see cref="GroupBy{TSource, TKey}(
IQueryable
{TSource}, Expression{Func{TSource, TKey}})"/> methods
3093
public static
IQueryable
<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, TAccumulate seed, Expression<Func<TAccumulate, TSource, TAccumulate>> func, IEqualityComparer<TKey>? keyComparer = null) where TKey : notnull
3102
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, TAccumulate, Expression<Func<TAccumulate, TSource, TAccumulate>>, IEqualityComparer<TKey>,
IQueryable
<KeyValuePair<TKey, TAccumulate>>>(AggregateBy).Method,
3112
/// <param name="source">An <see cref="
IQueryable
{T}"/> to aggregate over.</param>
3119
/// This method is comparable to the <see cref="GroupBy{TSource, TKey}(
IQueryable
{TSource}, Expression{Func{TSource, TKey}})"/> methods
3123
public static
IQueryable
<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(this
IQueryable
<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TKey, TAccumulate>> seedSelector, Expression<Func<TAccumulate, TSource, TAccumulate>> func, IEqualityComparer<TKey>? keyComparer = null) where TKey : notnull
3133
new Func<
IQueryable
<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TKey, TAccumulate>>, Expression<Func<TAccumulate, TSource, TAccumulate>>, IEqualityComparer<TKey>,
IQueryable
<KeyValuePair<TKey, TAccumulate>>>(AggregateBy).Method,
3138
public static
IQueryable
<TSource> SkipLast<TSource>(this
IQueryable
<TSource> source, int count)
3145
new Func<
IQueryable
<TSource>, int,
IQueryable
<TSource>>(SkipLast).Method,
3151
public static
IQueryable
<TSource> TakeLast<TSource>(this
IQueryable
<TSource> source, int count)
3158
new Func<
IQueryable
<TSource>, int,
IQueryable
<TSource>>(TakeLast).Method,
3163
public static
IQueryable
<TSource> Append<TSource>(this
IQueryable
<TSource> source, TSource element)
3170
new Func<
IQueryable
<TSource>, TSource,
IQueryable
<TSource>>(Append).Method,
3175
public static
IQueryable
<TSource> Prepend<TSource>(this
IQueryable
<TSource> source, TSource element)
3182
new Func<
IQueryable
<TSource>, TSource,
IQueryable
<TSource>>(Prepend).Method,
System.ServiceModel.Primitives (1)
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
65
private static Type s_typeOfIQueryableGeneric = typeof(
IQueryable
<>);
TestProject.IntegrationServiceA (1)
Postgres\NpgsqlEFCoreExtensions.cs (1)
17
var
results = dbContext.Database.SqlQueryRaw<int>("SELECT 1");
XmlFormattersWebSite (7)
Controllers\IQueryableController.cs (7)
11
public
IQueryable
<int> ValueTypes()
16
public
IQueryable
<string> NonWrappedTypes()
21
public
IQueryable
<Person> WrappedTypes()
29
public
IQueryable
<Person> WrappedTypes_Empty()
34
public
IQueryable
<string> NonWrappedTypes_Empty()
39
public
IQueryable
<string> NonWrappedTypes_NullInstance()
44
public
IQueryable
<Person> WrappedTypes_NullInstance()