Expressions that travel with your data
A single fluent expression becomes LINQ, SQL, NoSQL queries or in-memory checks.
Vali-Flow.Core
Dependency-free fluent builder for expression trees and in-memory validation.
Vali-Flow (EF Core)
Wrap an expression in a Specification and run it against DbSet<T> with async evaluators.
Vali-Flow.InMemory
Synchronous, zero-dependency evaluator for IEnumerable<T> — unit tests, caches, prototyping.
Vali-Flow.Sql
Translate an expression into a parameterized SQL WHERE clause for Dapper or raw ADO.NET.
Vali-Flow.NoSql.MongoDB
Translate an expression into a MongoDB BsonDocument filter.
Vali-Flow.NoSql.DynamoDB
Translate an expression into a DynamoDB FilterExpression for scans and queries.
Vali-Flow.NoSql.Elasticsearch
Translate an expression into an Elasticsearch Query object.
Vali-Flow.NoSql.Redis
Translate an expression into a RediSearch query string.
Vali-Flow.NoSql.Couchbase
Translate an expression into a Couchbase N1QL WHERE clause fragment.
Vali-Flow.NoSql.CosmosDb
Translate an expression into an Azure Cosmos DB SQL API WHERE clause fragment.
Vali-Flow.NoSql.Firestore
Translate an expression into a native Google.Cloud.Firestore Filter.
Build → translate → execute
Core builds the expression tree. Evaluators translate it to the store you run.
new ValiFlow<Product>()evaluator.EvaluateQueryAsync(spec)expression.ToSql(dialect)evaluator.Evaluate(entity, expression)expression.ToMongo()expression.ToDynamoDB()expression.ToElasticsearch()expression.ToRedisSearch()expression.ToCouchbase()expression.ToCosmosDb()expression.ToFirestore()// Build the expression treevar expression = new ValiFlow<Product>() .EqualTo(p => p.IsActive, true) .GreaterThan(p => p.Price, 10m);// Apply it directly with EF Corevar result = await dbContext.Products .Where(expression.Build()) .ToListAsync();11 NuGet packages. Install only what you need.
Start with Core, add one evaluator, or mix multiple stores.
EF Core evaluator — wraps an expression in a Specification and reads/writes via DbSet<T>.
dotnet add package Vali-FlowCore builder for expression trees and in-memory validation.
dotnet add package Vali-Flow.CoreSynchronous evaluator for IEnumerable<T> — tests, caches, prototyping.
dotnet add package Vali-Flow.InMemoryTranslates an expression into a parameterized SQL WHERE clause for Dapper/ADO.NET.
dotnet add package Vali-Flow.SqlTranslates an expression into a MongoDB BsonDocument filter.
dotnet add package Vali-Flow.NoSql.MongoDBTranslates an expression into a DynamoDB FilterExpression.
dotnet add package Vali-Flow.NoSql.DynamoDBTranslates an expression into an Elasticsearch Query object.
dotnet add package Vali-Flow.NoSql.ElasticsearchTranslates an expression into a RediSearch query string.
dotnet add package Vali-Flow.NoSql.RedisTranslates an expression into a Couchbase N1QL WHERE fragment + params.
dotnet add package Vali-Flow.NoSql.CouchbaseTranslates an expression into an Azure Cosmos DB SQL API WHERE fragment.
dotnet add package Vali-Flow.NoSql.CosmosDbTranslates an expression into a native Google.Cloud.Firestore Filter.
dotnet add package Vali-Flow.NoSql.FirestoreWhere Vali-Flow fits best
Compose rules once, keep behavior consistent across services and storage layers.
Repository Filters
Build expressions in the application layer and run them inside EF Core or raw SQL repos.
EvaluateQueryAsync(spec)Cross-Store Consistency
Use the same expression across all 7 NoSQL stores — MongoDB, DynamoDB, Elasticsearch, Redis, Couchbase, Cosmos DB, Firestore.
ToMongo / ToElasticsearch / ToSqlTesting & Validation
Run expressions in memory to validate domain rules in fast unit tests.
Evaluate(entity, expression)