示例#1
0
        public override FormFilterCondition Copy()
        {
            var copy = new FilterCombination
            {
                Type        = Type,
                RightFilter = RightFilter.Copy(),
                LeftFilter  = LeftFilter.Copy()
            };

            return(copy);
        }
示例#2
0
            public override DbParameter[] GetParameters()
            {
                DbParameter[] leftParams;
                DbParameter[] rightParams;

                if (LeftFilter.UsesParameter && RightFilter.UsesParameter)
                {
                    leftParams  = LeftFilter.GetParameters();
                    rightParams = RightFilter.GetParameters();

                    return(leftParams.Concat(rightParams).ToArray());
                }
                else if (LeftFilter.UsesParameter)
                {
                    return(LeftFilter.GetParameters());
                }
                else if (RightFilter.UsesParameter)
                {
                    return(RightFilter.GetParameters());
                }

                return(null);
            }
示例#3
0
 protected internal override string GetSQLClause()
 {
     return($"{LeftFilter.GetSQLClause()} {Link} {RightFilter.GetSQLClause()}");
 }