T4 Template AutoQuery feature

Hi Richard,

Just wanted to let you know about a new feature that makes it a lot easier to dynamically change databases at runtime. You shouldn’t need it for this, but may help if you want to support multiple databases in the same Service in future.