I want to batch multiple select statements to reduce round trips to the database. The code looks something like the pseudo code below. It works perfectly on SQL Server, but
why not use stored procedures instead?
But, if you want to batch them in an inline query, you can use a semicolon (;) to seperate the statements.
var sql = @"BEGIN
select * from table1;
select * from table2;
select * from table3;
END;";
EDIT: You take a look at this SO question.
EDIT2: Take a look at this answer.