コード例 #1
0
ファイル: QueryTable.cs プロジェクト: kendarorg/ZakFramework
        /*public QueryCondition CreateCondition(string fieldName =null)
        {
            var toret = CreateEmptyCondition(fieldName);
            if (Conditions == null)
            {
                Conditions = toret;
            }
            return toret;
        }

        public QueryCondition CreateEmptyCondition(string fieldName = null)
        {
            if (string.IsNullOrWhiteSpace(fieldName))
            {
                return new QueryCondition();
            }
            QueryCondition toret = null;
            if (_fields != null && _fields.ContainsKey(fieldName))
            {
                toret = new QueryCondition(fieldName, Alias);
            }
            return toret;
        }*/
        public QueryCondition And(params QueryCondition[] querySelects)
        {
            var qc = new QueryCondition();
            Conditions = qc;
            Conditions.Parent = this;
            qc.TableAlias = this;
            return qc.And(querySelects);
        }