I am trying to get connection from EntityFrameworkCore DBContext to invoke custom sql in the same transaction. However returned connection is in closed state.
Sql