Perform arithmetic expressions in filters
mainYou can perform calculations directly within your queries using standard arithmetic operators: +, -, *, /, and % (modulo). These expressions are translated to efficient SQL by Entity Framework.
Examples:
// Find records where Age + Rating is greater than 50
var input = "(Age + Rating) > 50";
// Calculate profit margin and filter
var profitableItems = _dbContext.Products
.ApplyQueryKitFilter("((Price - Cost) / Price) > 0.2")
.ToList();var input = "(Age + Rating) > 50";