1 type derived from DbExpressionRule
System.Data.Entity (1)
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (1)
27internal 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. 77protected abstract IEnumerable<DbExpressionRule> GetRules(); 79private static Tuple<DbExpression, DbExpressionRule.ProcessedAction> ProcessRules(DbExpression expression, List<DbExpressionRule> rules) 88DbExpressionRule currentRule = rules[idx]; 94if (currentRule.OnExpressionProcessed != DbExpressionRule.ProcessedAction.Continue) 105return Tuple.Create(expression, DbExpressionRule.ProcessedAction.Continue); 115List<DbExpressionRule> currentRules = this.GetRules().ToList(); 117while (ruleResult.Item2 == DbExpressionRule.ProcessedAction.Reset) 122if (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&lt;DbExpression, bool&gt; 'pattern' 23/// to implement <see cref="DbExpressionRule.ShouldProcess"/> and a Func&lt;DbExpression, DbExpression&gt; '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"/> 100protected override IEnumerable<DbExpressionRule> GetRules()