EricksonLopez.Specification Overview
EricksonLopez.Specification (2.0.0 on NuGet, L1) separates pure domain predicates (Specification<T>) from application query descriptors (QuerySpec<T>) and translates expression trees directly into parameterized SQL across 6 database dialects or LINQ / MongoDB providers.
Package Roster & Native AOT Status (17 / 17 Published)
Section titled “Package Roster & Native AOT Status (17 / 17 Published)”- Full AOT (
13,net8.0;net9.0;net10.0):Specification,Specification.Abstractions,Specification.Linq,Specification.EntityFrameworkCore,Specification.Result,Specification.Sql,Specification.PostgreSql,MsSql,MySql,MariaDb,Sqlite,Oracle,MongoDB. - Incompatible (
2):Specification.Dapper,Specification.DapperExtensions(IsAotCompatible=false,EnableTrimAnalyzer=true). - Roslyn (
2,netstandard2.0):Specification.Analyzers(SPEC001–SPEC011),Specification.Generators(SPEC100).
Verified RyuJIT Benchmarks (.NET 10.0.12 X64)
Section titled “Verified RyuJIT Benchmarks (.NET 10.0.12 X64)”Measured across 16 rows (0 na_error) on .NET 10.0.12 X64 RyuJIT (Intel Xeon Platinum 8370C 2.80GHz):
SpecificationEvaluationBenchmarks.IsSatisfiedBy(interpretedExpressionInterpreter, AOT-safe): 97.80 ns / 96 BSpecificationEvaluationBenchmarks.IsSatisfiedBy(compiled cache): 149.81 ns / 48 BExpressionCompositionBenchmarks.ExpressionComposer.And: 252.7 ns / 448 BSqlTranslationBenchmarks(Simple spec → SQL): 406.1 ns / 1,260 B; (Complex spec → SQL): 2,402.6 ns / 4,188 B