Skip to content

Commit

Permalink
Merge pull request #4900 from elsa-workflows/issue(4884)
Browse files Browse the repository at this point in the history
Fix memory leak when using EF Core
  • Loading branch information
raymonddenhaan authored Feb 8, 2024
2 parents d878314 + decb5d8 commit 1f402ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static class ExpressionExtensions
public static Expression<Func<TEntity, bool>> BuildContainsExpression<TEntity>(this Expression<Func<TEntity, string>> keySelector, IEnumerable<TEntity> entities) where TEntity : class
{
var compiledKeySelector = keySelector.Compile();
var list = entities.Select(compiledKeySelector);
var list = entities.Select(compiledKeySelector).ToList();
var property = keySelector.GetProperty()!;
var param = Expression.Parameter(typeof(TEntity));

Expand Down

0 comments on commit 1f402ab

Please sign in to comment.