We obsoleted DbFactory before we removed it as all Resources on Service base class are now overridable and resolved from AppHost. This was required for Db access to be Multitenancy aware which doesn’t work when retrieving a Db connection directly from the DbFactory and therefore is recommended to use base.Db when you can.
In order to access DbFactory again you can just add a public property in your Services so it’s injected like any other dependency, e.g:
public IDbConnectionFactory DbFactory { get; set; }