Beispiel #1
0
        /// <summary>
        /// 添加表及表关系
        /// </summary>
        /// <param name="t"></param>
        /// <param name="tableOperator"></param>
        /// <param name="expression"></param>
        /// <returns></returns>
        public QueryParameterReduce AddTable(Type t, TableOperatorEnum tableOperator = TableOperatorEnum.None, Expression expression = null)
        {
            TableRelevanceMapper table = new TableRelevanceMapper(t, tableOperator);

            if (expression != null)
            {
                ConvertExpression(expression, table.ColumnOperator);
            }
            QueryHelper.AddTable(table);
            return(this);
        }