Raiqub.Expressions.Reading
2.3.206
Prefix Reserved
dotnet add package Raiqub.Expressions.Reading --version 2.3.206
NuGet\Install-Package Raiqub.Expressions.Reading -Version 2.3.206
<PackageReference Include="Raiqub.Expressions.Reading" Version="2.3.206" />
paket add Raiqub.Expressions.Reading --version 2.3.206
#r "nuget: Raiqub.Expressions.Reading, 2.3.206"
// Install Raiqub.Expressions.Reading as a Cake Addin #addin nuget:?package=Raiqub.Expressions.Reading&version=2.3.206 // Install Raiqub.Expressions.Reading as a Cake Tool #tool nuget:?package=Raiqub.Expressions.Reading&version=2.3.206
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)
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 | 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 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. |
-
.NETStandard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- Raiqub.Expressions (>= 2.3.206)
-
.NETStandard 2.1
- Raiqub.Expressions (>= 2.3.206)
-
net6.0
- Raiqub.Expressions (>= 2.3.206)
-
net8.0
- Raiqub.Expressions (>= 2.3.206)
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 | 127 | 10/17/2024 |
2.3.176 | 212 | 8/31/2024 |
2.3.123 | 220 | 6/9/2024 |
2.3.117 | 224 | 6/4/2024 |
2.3.99 | 170 | 5/19/2024 |
2.3.69 | 239 | 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 | 569 | 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 |
See https://github.com/skarllot/Expressions/releases for release notes.