DataFilter.Expressions.Server 1.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package DataFilter.Expressions.Server --version 1.1.2
                    
NuGet\Install-Package DataFilter.Expressions.Server -Version 1.1.2
                    
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="DataFilter.Expressions.Server" Version="1.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DataFilter.Expressions.Server" Version="1.1.2" />
                    
Directory.Packages.props
<PackageReference Include="DataFilter.Expressions.Server" />
                    
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 DataFilter.Expressions.Server --version 1.1.2
                    
#r "nuget: DataFilter.Expressions.Server, 1.1.2"
                    
#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 DataFilter.Expressions.Server@1.1.2
                    
#: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=DataFilter.Expressions.Server&version=1.1.2
                    
Install as a Cake Addin
#tool nuget:?package=DataFilter.Expressions.Server&version=1.1.2
                    
Install as a Cake Tool

DataFilter.Expressions.Server

Extension for applying DataFilter criteria to IQueryable<T> with compiled LINQ expression trees (EF Core, Dapper, etc.).

NuGet integration

Install the package

dotnet add package DataFilter.Expressions.Server

Target frameworks

net8.0, net9.0

Dependencies

  • DataFilter.Core

Use alongside your UI stack or API layer; no UI references.

Quick start

using DataFilter.Core.Enums;
using DataFilter.Core.Models;
using DataFilter.Core.Pipeline;
using DataFilter.Core.Services;
using DataFilter.Expressions.Server.Services;

// Build or restore filter context from UI snapshot
var context = new FilterContext();
context.AddOrUpdateDescriptor(new FilterDescriptor("Department", FilterOperator.Equals, "IT"));

// Apply filters + multi-column sort to IQueryable
var engine = new QueryableFilterEngine<Employee>();
var query = engine.Apply(dbContext.Employees, context);

// From a filter pipeline preset
var pipeline = FilterPipelineSnapshotMapper.ToPipeline(pipelineSnapshot);
context.ReplaceDescriptors(FilterPipelineCompiler.Compile(pipeline));
var filtered = engine.Apply(dbContext.Employees, context).ToList();

Features

  • QueryableFilterEngine<T> — applies IFilterContext.Descriptors and SortDescriptors to an IQueryable<T>.
  • Uses FilterExpressionBuilder from Core (logical groups, wildcards in text patterns, all standard operators).
  • TopNFilter, AverageFilter — optional aggregate helpers for advanced scenarios.

Usage

using DataFilter.Core.Models;
using DataFilter.Core.Services;
using DataFilter.Expressions.Server.Services;

// 1. Receive snapshot from UI (WPF, Blazor, or API body)
FilterSnapshot snapshot = DeserializeFromClient();

// 2. Restore into a FilterContext
var context = new FilterContext();
new FilterSnapshotBuilder().RestoreSnapshot(context, snapshot);

// 3. Apply to IQueryable (filter + sort)
var engine = new QueryableFilterEngine<MyDataModel>();
var filteredData = engine.Apply(dbContext.MyTable, context).ToList();

For pipeline presets, map FilterPipelineSnapshot → FilterPipeline, compile with FilterPipelineCompiler, then call context.ReplaceDescriptors(...) before Apply.

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 is compatible.  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.1.4 121 6/9/2026
1.1.3 106 6/8/2026
1.1.2 115 6/8/2026
1.1.1 106 6/5/2026
1.1.0 115 6/4/2026
1.0.0-beta 114 3/10/2026