不需要,Dapper 自己会打开并关闭数据库连接,参考 How does Dapper execute query without explicitly opening connection?
var conn = _dbContext.Database.GetDbConnection();
var result = await conn.QueryFirstOrDefaultAsync<string>(
"xxx",
new { Id },
commandType: CommandType.StoredProcedure);