There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Accessing Connection Strings From T4 Template
My template creates an instance of the DBContext used by the default project to customize the template output based on the data in the database, not the schema of the database.
To create the instance my template file needs access to the connection string.
Question: Short of hard coding the connection string into the t4 template file, what's the best way of providing it from an external config file?
Ideally it would be coming from the Package Manager Console's Default Project's config file.