Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a dynamic Sql builder library for .Net? [closed]

Something like this.

http://code.google.com/p/squiggle-sql/wiki/Tutorial.

This is required for cases where It is required to build complex sql from the user input from UI. Currently in the project I am working is using String Manipulation which looks ugly and is difficult to maintain.

like image 887
Amitabh Avatar asked Apr 19 '10 22:04

Amitabh


People also ask

What is dynamic query builder?

The Query Builder control enables you to define your query for scenarios where you need server-side filtering based on criteria defined at run time. You can use it with your database connectors by providing the query based on the dynamic selection.

How Dynamic SQL can be executed?

Executing dynamic SQL using sp_executesql sp_executesql is an extended stored procedure that can be used to execute dynamic SQL statements in SQL Server. we need to pass the SQL statement and definition of the parameters used in the SQL statement and finally set the values to the parameters used in the query.

How do I create a dynamic query in SQL Java?

You have to build your query dynamically, at the beginning of the method check whether id is null or equal 0 . To make it easier you can use trick in where clause with 1=1 so where clause can be included all the time in the query.

What is query Builder in Java?

The query builder is a utility to generate CQL queries programmatically.


1 Answers

Try DbExtensions, available as NuGet package.

like image 116
Max Toro Avatar answered Nov 08 '22 17:11

Max Toro