Default
Google

SQLBuilder

Access any Database from C# or VB .NET without having to worry about the SQL syntax with SQLBuilder.

For example, instead of writing, as most programmers do (in VB .NET)

Dim strQuery As String = "SELECT tblUsers.FirstName, tblUsers.LastName FROM" & _
                         "tblUsers WHERE tblUsers.City = '" & strCity.ToString() & "'"
Dim cmd As IDbCommand = Connection.CreateCommand()
cmd.CommandText = strQuery
dim reader As IDataReader = cmd.ExecuteReader()
'...
SQLBuilder allows you to express SQL commands using objects and to write :
Dim query As New Query(tblUsers)
query.AddFields(tblUsers.FirstName, tblUsers.LastName)
query.AddCondition(tblUsers.City, Expr.OP_EQUAL, strCity)
dim reader as IDataReader = query.ExecuteReader(Connection)
'...
SQLBuilder will automatically generate and pass the above query to the database connection for you. In other words, with SQLBuilder you do not have to worry about the SQL syntax because you build SQL commands entirely using high level objects and concepts.
By the way, did you notice the mistake in the first example ? A space is missing after 'FROM'. Oh, and what if strCity contains a quote ? With SQLBuilder you do not have to worry about these problems.

In contrast to other solutions which map the content of a database to a structure, and generates only simple SQL statement, letting the hard computation to the program, SQLBuilder allows you to build SQL statement of any complexity, including UPDATE, DELETE and INSERT statements.

Features



Acquiring image from ProHosting Banner Exchange