Raiqub.Expressions.Reading 2.3.176

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Raiqub.Expressions.Reading --version 2.3.176                
NuGet\Install-Package Raiqub.Expressions.Reading -Version 2.3.176                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Raiqub.Expressions.Reading" Version="2.3.176" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Raiqub.Expressions.Reading --version 2.3.176                
#r "nuget: Raiqub.Expressions.Reading, 2.3.176"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Raiqub.Expressions.Reading as a Cake Addin
#addin nuget:?package=Raiqub.Expressions.Reading&version=2.3.176

// Install Raiqub.Expressions.Reading as a Cake Tool
#tool nuget:?package=Raiqub.Expressions.Reading&version=2.3.176                

Raiqub Expressions Reading - Query Strategy and Database Session

Provides abstractions for creating query strategies, query sessions and querying from database (defines IDbQuerySessionFactory and IDbQuerySession interfaces)

Build status NuGet Code coverage Mutation testing badge GitHub license

Documentation and Samples

Documentation, and samples, for using Raiqub Expressions can be found in the repository's README and documentation.

Quick Example

Single entity query:

public class GetProductNameQueryStrategy : EntityQueryStrategy<Product, ProductName>
{
    protected override IQueryable<ProductName> ExecuteCore(IQueryable<Product> source)
    {
        return source
            .Where(ProductSpecification.IsInStock)
            .OrderBy(e => e.Name)
            .Select(e => new ProductName { Id = e.Id, Name = e.Name });
    }
}

Multiple entities query:

public class GetProductNameOfOpenStoreQueryStrategy : IQueryStrategy<ProductName>
{
    public IQueryable<TResult> Execute(IQuerySource source) =>
        source => from product in source.GetSetUsing(ProductSpecification.IsInStock)
            join store in source.GetSetUsing(StoreSpecification.IsOpen) on
                product.StoreId equals store.Id
            orderby product.Name
            select new ProductName { Id = e.Id, Name = e.Name };
}

Using database session:

// Assuming 'session' is of type IDbQuerySession and has been injected
var query = session.Query(new CustomerIsActive());
var customers = await query.ToListAsync();

Release Notes

See GitHub Releases for release notes.

Product 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 was computed.  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 is compatible.  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 is compatible. 
.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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Raiqub.Expressions.Reading:

Package Downloads
Raiqub.Expressions.Writing

Provides abstractions for creating write sessions and writing to database (defines IDbSessionFactory and IDbSession interfaces).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.3.206 129 10/17/2024
2.3.176 216 8/31/2024
2.3.123 222 6/9/2024
2.3.117 226 6/4/2024
2.3.99 170 5/19/2024
2.3.69 241 4/24/2024
2.3.53 281 4/6/2024
2.2.39 575 1/7/2024
2.2.5 588 11/11/2023
2.1.50 571 11/2/2023
2.1.8 619 10/6/2023
2.1.7 585 10/1/2023
2.0.4 617 9/24/2023
1.1.3 628 9/24/2023
1.0.34 591 9/7/2023
1.0.19-gc5aee6dbbe 592 7/30/2023
1.0.16-gc38afc643f 616 7/29/2023
1.0.3-g5a9a3695a8 626 4/20/2023
1.0.0-pre20230410-0253 574 4/10/2023