private PatternMatchRule( Func <DbExpression, bool> matchFunc, Func <DbExpression, DbExpression> processor, ProcessedAction onProcessed) { isMatch = matchFunc; process = processor; processed = onProcessed; }
/// <summary> /// Constructs a new PatternMatchRule with the specified pattern, processor and <see cref="DbExpressionRule.ProcessedAction"/> /// </summary> internal static PatternMatchRule Create(Func<DbExpression, bool> matchFunc, Func<DbExpression, DbExpression> processor, ProcessedAction onProcessed) { EntityUtil.CheckArgumentNull(matchFunc, "matchFunc"); EntityUtil.CheckArgumentNull(processor, "processor"); return new PatternMatchRule(matchFunc, processor, onProcessed); }
private PatternMatchRule( Func<DbExpression, bool> matchFunc, Func<DbExpression, DbExpression> processor, ProcessedAction onProcessed) { isMatch = matchFunc; process = processor; processed = onProcessed; }
/// <summary> /// Constructs a new PatternMatchRule with the specified pattern, processor and <see /// cref="DbExpressionRule.ProcessedAction" /> /// </summary> internal static PatternMatchRule Create( Func<DbExpression, bool> matchFunc, Func<DbExpression, DbExpression> processor, ProcessedAction onProcessed) { Contract.Requires(matchFunc != null); Contract.Requires(processor != null); return new PatternMatchRule(matchFunc, processor, onProcessed); }
// <summary> // Constructs a new PatternMatchRule with the specified pattern, processor and // <see // cref="DbExpressionRule.ProcessedAction" /> // </summary> internal static PatternMatchRule Create( Func<DbExpression, bool> matchFunc, Func<DbExpression, DbExpression> processor, ProcessedAction onProcessed) { DebugCheck.NotNull(matchFunc); DebugCheck.NotNull(processor); return new PatternMatchRule(matchFunc, processor, onProcessed); }
/// <summary> /// Constructs a new PatternMatchRule with the specified pattern, processor and /// <see /// cref="DbExpressionRule.ProcessedAction" /> /// </summary> internal static PatternMatchRule Create( Func <DbExpression, bool> matchFunc, Func <DbExpression, DbExpression> processor, ProcessedAction onProcessed) { DebugCheck.NotNull(matchFunc); DebugCheck.NotNull(processor); return(new PatternMatchRule(matchFunc, processor, onProcessed)); }
/// <summary> /// Constructs a new PatternMatchRule with the specified pattern, processor and <see cref="DbExpressionRule.ProcessedAction"/> /// </summary> internal static PatternMatchRule Create(Func <DbExpression, bool> matchFunc, Func <DbExpression, DbExpression> processor, ProcessedAction onProcessed) { EntityUtil.CheckArgumentNull(matchFunc, "matchFunc"); EntityUtil.CheckArgumentNull(processor, "processor"); return(new PatternMatchRule(matchFunc, processor, onProcessed)); }