Skip to content

Commit

Permalink
Remove model from plugin API
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed Feb 26, 2020
1 parent 96dee3a commit 9a57033
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/EFCore/Query/EvaluatableExpressionFilterBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public virtual bool IsEvaluatableExpression(Expression expression, IModel model)

foreach (var plugin in Dependencies.Plugins)
{
if (!plugin.IsEvaluatableExpression(expression, model))
if (!plugin.IsEvaluatableExpression(expression))
{
return false;
}
Expand Down
3 changes: 1 addition & 2 deletions src/EFCore/Query/IEvaluatableExpressionFilterPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ public interface IEvaluatableExpressionFilterPlugin
/// Checks whether the given expression can be evaluated.
/// </summary>
/// <param name="expression"> The expression. </param>
/// <param name="model"> The model. </param>
/// <returns> True if the expression can be evaluated; false otherwise. </returns>
bool IsEvaluatableExpression([NotNull] Expression expression, [NotNull] IModel model);
bool IsEvaluatableExpression([NotNull] Expression expression);
}
}

1 comment on commit 9a57033

@AndriySvyryd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@roji You broke the build 😱

Please sign in to comment.