1 instantiation of PatternMatchRule
System.Data.Entity (1)
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (1)
72
return new
PatternMatchRule
(matchFunc, processor, onProcessed);
13 references to PatternMatchRule
System.Data.Entity (13)
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (9)
59
internal static
PatternMatchRule
Create(Func<DbExpression, bool> matchFunc, Func<DbExpression, DbExpression> processor)
61
return
PatternMatchRule
.Create(matchFunc, processor, ProcessedAction.Reset);
67
internal static
PatternMatchRule
Create(Func<DbExpression, bool> matchFunc, Func<DbExpression, DbExpression> processor, ProcessedAction onProcessed)
77
/// PatternMatchRuleProcessor is a specialization of <see cref="DbExpressionRuleProcessingVisitor"/> that uses a collection of <see cref="
PatternMatchRule
"/>s
83
private readonly System.Collections.ObjectModel.ReadOnlyCollection<
PatternMatchRule
> ruleSet;
85
private PatternMatchRuleProcessor(System.Collections.ObjectModel.ReadOnlyCollection<
PatternMatchRule
> rules)
105
internal static Func<DbExpression, DbExpression> Create(params
PatternMatchRule
[] rules)
109
return new PatternMatchRuleProcessor(new System.Collections.ObjectModel.ReadOnlyCollection<
PatternMatchRule
>(rules)).Process;
114
/// Provides a means of constructing Func<DbExpression, bool> 'patterns' for use with <see cref="
PatternMatchRule
"/>s.
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (4)
64
PatternMatchRule
.Create(Pattern_CollapseNestedProjection, ViewSimplifier.CollapseNestedProjection),
67
PatternMatchRule
.Create(Pattern_Case, ViewSimplifier.SimplifyCaseStatement),
70
PatternMatchRule
.Create(Pattern_NestedTphDiscriminator, ViewSimplifier.SimplifyNestedTphDiscriminator),
73
PatternMatchRule
.Create(Pattern_EntityConstructor, this.AddFkRelatedEntityRefs)