var builder = new SqlBuilder(); var sql = builder.AddTemplate( /*...
Intensely dumb question but, how do I use this? I know it's in
Dapper.Contrib, but that
using statement isn't enough. What references or other
using statements do I need to add?
Don't know if no one knew or if it was just too silly to answer, but this is the correct statement:
To this date, SqlBuilder has not made yet to any official package on Nuget. I got that installed by using the following package: Dapper.SqlBuilder. I really hope it becomes part of the official library.
Anyways, to your question, once the package is installed, you don't need to add any new "using" clause, as the SqlBuilder is inside the same Dapper namespace.
You can check the source code details in here: https://github.com/StackExchange/dapper-dot-net/blob/master/Dapper.SqlBuilder/SqlBuilder.cs