Specification.Lite 0.0.1

There is a newer version of this package available.
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" />
                    
Directory.Packages.props
<PackageReference Include="Specification.Lite" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Specification.Lite&version=0.0.1
                    
Install as a Cake Tool

Specification.Lite

GitHub

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, and AnyAsync.

3. Include Expressions

  • Define navigation properties to include in queries using Include and ThenInclude.

4. Ordering

  • Apply ordering to queries using OrderBy and OrderByDescending.

5. Projection

  • Transform entities into DTOs or other result types using Select and SelectMany.

6. Tracking

  • Control entity tracking behavior with AsTracking and AsNoTracking.

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 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.0 134 7/15/2025
1.2.0 135 7/6/2025
1.1.0 71 7/5/2025
1.0.3 68 7/5/2025
1.0.2 80 7/4/2025
1.0.1 119 7/4/2025
1.0.0 130 7/4/2025
0.0.1 139 7/1/2025