1 type derived from DbExpressionRule
System.Data.Entity (1)
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (1)
27
internal class PatternMatchRule :
DbExpressionRule
17 references to DbExpressionRule
System.Data.Entity (17)
System\Data\Common\CommandTrees\Internal\DbExpressionRules.cs (10)
70
/// Abstract base class for a DbExpression visitor that can apply a collection of <see cref="
DbExpressionRule
"/>s during the visitor pass, returning the final result expression.
77
protected abstract IEnumerable<
DbExpressionRule
> GetRules();
79
private static Tuple<DbExpression,
DbExpressionRule
.ProcessedAction> ProcessRules(DbExpression expression, List<
DbExpressionRule
> rules)
88
DbExpressionRule
currentRule = rules[idx];
94
if (currentRule.OnExpressionProcessed !=
DbExpressionRule
.ProcessedAction.Continue)
105
return Tuple.Create(expression,
DbExpressionRule
.ProcessedAction.Continue);
115
List<
DbExpressionRule
> currentRules = this.GetRules().ToList();
117
while (ruleResult.Item2 ==
DbExpressionRule
.ProcessedAction.Reset)
122
if (ruleResult.Item2 ==
DbExpressionRule
.ProcessedAction.Stop)
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (7)
22
/// PatternMatchRule is a specialization of <see cref="
DbExpressionRule
"/> that uses a Func<DbExpression, bool> 'pattern'
23
/// to implement <see cref="
DbExpressionRule
.ShouldProcess"/> and a Func<DbExpression, DbExpression> 'processor' to implement
24
/// <see cref="
DbExpressionRule
.TryProcess"/>. The 'processor' should return <c>null</c> to indicate that the expression was not
57
/// Constructs a new PatternMatch rule with the specified pattern, processor and default <see cref="
DbExpressionRule
.ProcessedAction"/> of <see cref="
DbExpressionRule
.ProcessedAction.Reset"/>
65
/// Constructs a new PatternMatchRule with the specified pattern, processor and <see cref="
DbExpressionRule
.ProcessedAction"/>
100
protected override IEnumerable<
DbExpressionRule
> GetRules()