Exemplo n.º 1
0
        public bool Validate()
        {
            var result = true;

            if (FilterConditions != null)
            {
                result = FilterConditions.Validate();
            }
            return(result);
        }
Exemplo n.º 2
0
        private bool ValidateCurrentSearch()
        {
            var result = true;

            if (!IsQuickFind)
            {
                result = FilterConditions.Validate();
                var joinValidate = Joins.Validate();
                if (!joinValidate)
                {
                    result = false;
                }
            }

            return(result);
        }
        private bool ValidateCurrentSearch()
        {
            var result = true;

            if (!IsQuickFind)
            {
                result = FilterConditions.Validate();
                var joinValidate = Joins.Validate();
                if (!joinValidate)
                {
                    result = result && joinValidate;
                }

                if (IncludeNotIn)
                {
                    var notInFilterValidate = NotInFilterConditions.Validate();
                    result = result && notInFilterValidate;
                    var notInJoinsValidate = NotInJoins.Validate();
                    result = result && notInJoinsValidate;
                }
            }

            return(result);
        }