示例#1
0
        /// <summary>
        /// 按TJoin追加条件
        /// </summary>
        /// <param name="expression"></param>
        /// <returns></returns>
        public LambdaQueryJoin <T, TJoin> Where(Expression <Func <TJoin, bool> > expression)
        {
            string condition = BaseQuery.FormatExpression(expression.Body).SqlOut;

            BaseQuery.AddInnerRelationCondition(new TypeQuery(typeof(TJoin)), condition);
            return(this);
        }