Exemplo n.º 1
0
        public TResult Execute <TResult>(Expression expression)
        {
            var builder = new BaseQueryBuilder(connection);

            builder.AddExpression(expression);
            return(builder.Scalar <TResult>());
        }
Exemplo n.º 2
0
        public object Execute(Expression expression)
        {
            var builder = new BaseQueryBuilder(connection);

            builder.AddExpression(expression);
            return(builder.Scalar());
        }
Exemplo n.º 3
0
        IEnumerator <T> IEnumerable <T> .GetEnumerator()
        {
            var queryBuilder = new BaseQueryBuilder <T>(queryProvider.Connection);
            var from         = queryBuilder.ParseExpression(Expression, ParseOptions.RegisterTables);
            var select       = new Select(queryBuilder.ParseSelectedColumn(queryBuilder.DefaultTable), from);

            select.Accept(queryBuilder.StringBuilder);
            return(queryBuilder.GetEnumerator());
        }