Ejemplo n.º 1
0
        public static void CreateView(this IQuery query, ObjectName viewName, IEnumerable <string> columnNames, Action <IQueryExpressionBuilder> queryExpression)
        {
            var builder = new QueryExpressionBuilder();

            queryExpression(builder);

            query.CreateView(viewName, columnNames, builder.Build());
        }
        public static IEnumerable <T> Select <T>(this IRequest request, Action <IQueryExpressionBuilder> query) where T : class
        {
            var builder = new QueryExpressionBuilder();

            query(builder);

            return(request.Select <T>(builder.Build()));
        }
Ejemplo n.º 3
0
        public static ISelectStatementBuilder Query(this ISelectStatementBuilder builder, Action <IQueryExpressionBuilder> query)
        {
            var queryBuilder = new QueryExpressionBuilder();

            query(queryBuilder);

            return(builder.Query(queryBuilder.Build()));
        }