9

I am trying to test out some Dapper stuff using LinqPad.

Dapper needs a SqlConnection (IDbConnection really) to work. I could construct my own in the code window, but I thought if LinqPad already had made one, I would just use that.

Does LinqPad have a SqlConnection object already hanging around that I could use?

Vaccano
  • 78,325
  • 149
  • 468
  • 850

1 Answers1

17

Did you try this?

this.Connection

It's a DataContext, after all.

Kirk Woll
  • 76,112
  • 22
  • 180
  • 195