is there a performance difference between using
HostContext.AppHost.GetDbConnection()
versus using an injected connectionfactory?
when there are several database queries happening simultaneously across many services
It’s exactly the same, Db
is just a convenience property that resolves a connection and auto disposes of it after the Service is executed.
Incidentally there are no injected dependencies in the Service base class as they’re all lazily loaded when needed.