Stringbuilder generator

I'm guessing that you were wasting your time with the StringBuilders to create SQL queries in VB.NET because you could have been using XML literals, e.g.
Dim query = <sql>
                SELECT *
                FROM MyTable
                WHERE ID = @ID
            </sql>
Dim command As New SqlClient.SqlCommand(query.Value)
 

Latest posts

Back
Top