예제 #1
0
		public static QueryContainer ToContainer(PlainQuery query, QueryContainer queryContainer = null)
		{
			if (query == null) return null;
			var c = queryContainer ?? new QueryContainer();
			IQueryContainer fc = c;
			query.WrapInContainer(c);
			return c;
		}
예제 #2
0
        public static QueryContainer ToContainer(PlainQuery query, QueryContainer queryContainer = null)
        {
            if (query == null)
            {
                return(null);
            }
            var             c  = queryContainer ?? new QueryContainer();
            IQueryContainer fc = c;

            query.WrapInContainer(c);
            return(c);
        }
예제 #3
0
        //public static QueryContainer operator &(PlainQuery leftQuery, PlainQuery rightQuery)
        //{
        //	var lc = new QueryContainer();
        //	leftQuery.WrapInContainer(lc);
        //	var rc = new QueryContainer();
        //	leftQuery.WrapInContainer(rc);
        //	return (lc && rc);
        //}

        public QueryContainer ToContainer()
        {
            return(PlainQuery.ToContainer(this));
        }