Fluentsoft.Queryable
1.0.3
See the version list below for details.
dotnet add package Fluentsoft.Queryable --version 1.0.3
NuGet\Install-Package Fluentsoft.Queryable -Version 1.0.3
<PackageReference Include="Fluentsoft.Queryable" Version="1.0.3" />
paket add Fluentsoft.Queryable --version 1.0.3
#r "nuget: Fluentsoft.Queryable, 1.0.3"
// Install Fluentsoft.Queryable as a Cake Addin #addin nuget:?package=Fluentsoft.Queryable&version=1.0.3 // Install Fluentsoft.Queryable as a Cake Tool #tool nuget:?package=Fluentsoft.Queryable&version=1.0.3
Queryable Class
Definitions
Namespace: Fluentsoft.System.Linq
Assembly: fluentsoft.system.linq.queryable.dll
Package: Fluentsoft.Queryable
Provides a set of static (Shared in Visual Basic) methods for querying data structures that implement IQueryable<T>.
public static class Queryable
Methods
Methods | Description |
---|---|
LeftOuterJoin | Correlates all records from the left table, and the matching records from the right table based on matching keys |
RightOuterJoin | Correlates all records from the right table, and the matching records from the left table based on matching keys |
FullOuterJoin | Correlates all records from the right table, and all records from the left table based on matching keys |
Select<T, TResult, T1, T2>(IQueryable<T> source, Expression<Func<T1, T2, TResult>> selector) | Projects each element of a sequence into a new form. |
IQueryable<TResult> Select<T, TResult, T1, T2, T3>(IQueryable<T> source, Expression<Func<T1, T2, T3, TResult>> selector) | Projects each element of a sequence into a new form. |
IQueryable<T> Where<T, T1, T2, T3>(this IQueryable<T> source, Expression<Func<T1, T2, T3, bool>> predicate) | Filters a sequence of values based on a predicate with three arguments taken from source value by splitting. |
IQueryable<T> Where<T, T1, T2>(IQueryable<T> source, Expression<Func<T1, T2, bool>> predicate) | Filters a sequence of values based on a predicate with two arguments taken from source value by splitting. |
Correlates all records from the left table, and the matching records from the right table based on matching keys
public static IQueryable<TResult> LeftOuterJoin<TOuter, TInner, TKey, TResult>(this
IQueryable<TOuter> outer,
IEnumerable<TInner> inner,
Expression<Func<TOuter, TKey>> outerKey,
Expression<Func<TInner, TKey>> innerKey,
Expression<Func<TOuter, TInner?, TResult>> resultSelector);
Type Parameters
TOuter
The type of the elements of the first sequence.
TInner
The type of the elements of the second sequence.
TKey
The type of the keys returned by the key selector functions.
TResult
The type of the result elements.
Parameters
outer
IQueryable<TOuter>
The first sequence to join.
inner
IEnumerable<TInner>
The sequence to join to the first sequence.
outerKeySelector
Expression<Func<TOuter,TKey>>
A function to extract the join key from each element of the first sequence.
innerKeySelector
Expression<Func<TInner,TKey>>
A function to extract the join key from each element of the second sequence.
resultSelector
Expression<Func<TOuter,TInner,TResult>>
A function to create a result element from two matching elements.
Returns
IQueryable<TResult>
An IQueryable<T> that has elements of type TResult obtained by performing an left outer join on two sequences.
Example
ctx.Departments.LeftOuterJoin(ctx.Employees,
z => z.ID,
z => z.DepartmentID,
(department, employee) => new
{
Department = department.Name,
Employee = employee.Name,
})
public static IQueryable<TResult> RughtOuterJoin<TOuter, TInner, TKey, TResult>(this
IEnumerable<TOuter> outer,
IQueryable<TInner> inner,
Expression<Func<TOuter, TKey>> outerKey,
Expression<Func<TInner, TKey>> innerKey,
Expression<Func<TOuter, TInner?, TResult>> resultSelector);
Type Parameters
TOuter
The type of the elements of the first sequence.
TInner
The type of the elements of the second sequence.
TKey
The type of the keys returned by the key selector functions.
TResult
The type of the result elements.
Parameters
outer
IEnumerable<TOuter>
The first sequence to join.
inner
IQueryable<TInner>
The sequence to join to the first sequence.
outerKeySelector
Expression<Func<TOuter,TKey>>
A function to extract the join key from each element of the first sequence.
innerKeySelector
Expression<Func<TInner,TKey>>
A function to extract the join key from each element of the second sequence.
resultSelector
Expression<Func<TOuter,TInner,TResult>>
A function to create a result element from two matching elements.
Returns
IQueryable<TResult>
An IQueryable<T> that has elements of type TResult obtained by performing an right outer join on two sequences.
Example
ctx.Departments.RightOuterJoin(ctx.Employees,
z => z.ID,
z => z.DepartmentID,
(department, employee) => new
{
Department = department.Name,
Employee = employee.Name,
})
public static IQueryable<TResult> FullOuterJoin<TOuter, TInner, TKey, TResult>(this
IQueryable<TOuter> outer,
IQueryable<TInner> inner,
Expression<Func<TOuter, TKey>> outerKey,
Expression<Func<TInner, TKey>> innerKey,
Expression<Func<TOuter, TInner?, TResult>> resultSelector);
Type Parameters
TOuter
The type of the elements of the first sequence.
TInner
The type of the elements of the second sequence.
TKey
The type of the keys returned by the key selector functions.
TResult
The type of the result elements.
Parameters
outer
IQueryable<TOuter>
The first sequence to join.
inner
IQueryable<TInner>
The sequence to join to the first sequence.
outerKeySelector
Expression<Func<TOuter,TKey>>
A function to extract the join key from each element of the first sequence.
innerKeySelector
Expression<Func<TInner,TKey>>
A function to extract the join key from each element of the second sequence.
resultSelector
Expression<Func<TOuter,TInner,TResult>>
A function to create a result element from two matching elements.
Returns
IQueryable<TResult>
An IQueryable<T> that has elements of type TResult
obtained by performing an full outer join on two sequences.
Example
ctx.Departments.FullOuterJoin(ctx.Employees,
z => z.ID,
z => z.DepartmentID,
(department, employee) => new
{
Department = department.Name,
Employee = employee.Name,
})
Publication: Implementation of Left Outer Join for Entity Framework
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.