Problem Example of my method where I am chaining linq expressions based on model values provided: public async Task<List<HistoryWorkoutExerciseModel>> GetHistoryWorkoutExerciseByFilterAsync(ChartFilterModel […]

# Tag: linq-expressions

## Calculating user efficiency on a time period with Linq

Problem I have this expression: public static readonly Expression<Func<ApplicationUser, decimal>> EfficiencyPercentExpr = e => (e.ExecutorOrders.Where(x => x.Added >= DbFunctions.AddDays(SqlFunctions.GetUtcDate(), -30)).Count(x […]