Пример #1
0
        public virtual ParameterizedQuery ParseInsertQuery(InsertQuery query)
        {
            builder = QueryService.CreateQueryBuild();

            ParseInsertIntoClause(query.Into);
            ParseInsertColumnsClause(query.Columns);
            ParseInsertValues(query.Values);

            return(builder.BuildQuery(new DbQueryConfigures()));
        }
Пример #2
0
        public virtual ParameterizedQuery ParseSelectQuery(SelectQuery query)
        {
            builder = QueryService.CreateQueryBuild();

            ParseSelectClause(query.SelectClause);
            ParseFromClause(query.FromClause);
            ParseWhereClause(query.WhereClause);
            ParseOrderByClause(query.OrderByClause);

            return(builder.BuildQuery(new DbQueryConfigures()));
        }