The following class wraps the stringbuilder that you will commonly use for building SQL requests, and hides the creation of parameters. It lets you write paramaterized queries without ever having to create a parameter, so you can concentrate on the SQL. It lets you writeYour code will look like this...
var bldr = new SqlBuilder( myCommand ); bldr.Append("SELECT * FROM CUSTOMERS WHERE ID = ").Value(myId, SqlDbType.Int); //or bldr.Append("SELECT * FROM CUSTOMERS NAME LIKE ").FuzzyValue(myName, SqlDbType.NVarChar); myCommand.CommandText = bldr.ToString();