Specification.Lite
0.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Specification.Lite --version 0.0.1
NuGet\Install-Package Specification.Lite -Version 0.0.1
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="Specification.Lite" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Specification.Lite" Version="0.0.1" />
<PackageReference Include="Specification.Lite" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Specification.Lite --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Specification.Lite, 0.0.1"
#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.
#:package Specification.Lite@0.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Specification.Lite&version=0.0.1
#tool nuget:?package=Specification.Lite&version=0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Specification.Lite
Specification.Lite is a lightweight library designed to simplify the implementation of the Specification pattern in .NET applications. It provides a flexible and reusable way to define and apply business rules, filtering, ordering, and projections to queries.
Features
1. Specification Pattern
- Define reusable business rules and query logic using specifications.
- Supports filtering, ordering, projections, and includes.
2. Query Extensions
- Apply specifications directly to
IQueryable
objects. - Supports asynchronous operations like
ToListAsync
,FirstOrDefaultAsync
,SingleOrDefaultAsync
, andAnyAsync
.
3. Include Expressions
- Define navigation properties to include in queries using
Include
andThenInclude
.
4. Ordering
- Apply ordering to queries using
OrderBy
andOrderByDescending
.
5. Projection
- Transform entities into DTOs or other result types using
Select
andSelectMany
.
6. Tracking
- Control entity tracking behavior with
AsTracking
andAsNoTracking
.
7. Integration with Entity Framework
- Seamlessly integrates with Entity Framework for database queries.
Installation
Add the package to your project using NuGet: Cooming soon.
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- EntityFramework (>= 6.5.1)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.EntityFrameworkCore.Relational (>= 8.0.17)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.