❔ Dapper Unit Of Work
So I'm setting up a simple UnitOfWork with dapper
For that we need to have a scoped Transaction and Connection
we register this as
I have to open connection with
Connection.Open();
before creating a transaction though
My question is how good of an idea is this?
Is there any better way of doing this without blocking?4 Replies
Stil interneted
What's the problem exactly? Is openning the connection slow such that blocking on it is an issue?
Yeah
Maybe I can do Lazy connection and transaction such that it only opens when actually has to execute Dapper query
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.