我只是从 Dapper“手册”中阅读这个示例:
connection.Execute(@"
set nocount on
create table #t(i int)
set nocount off
insert #t
select @a a union all select @b
set nocount on
drop table #t", new {a=1, b=2 })
.IsEqualTo(2);
#t 是某种特殊的语法吗?还是他们只是为了迷惑我?:)