Example #1
0
 private PatternMatchRule(
     Func <DbExpression, bool> matchFunc, Func <DbExpression, DbExpression> processor, ProcessedAction onProcessed)
 {
     isMatch   = matchFunc;
     process   = processor;
     processed = onProcessed;
 }
Example #2
0
        /// <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);
        }
Example #6
0
        /// <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));
        }
Example #7
0
        /// <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));
        }