Creating a DbConnectionFactory

I’ve been trying to figure out the best way to provide access to connections in my services via Dependency Injection (DI) for a while now. Typically I’ll pass the IConfiguration object through to the service using DI and then retrieve the connection string directly and create a new connection object Read more…

Digitally Signing PowerShell Scripts in Visual Studio Code

File C:\Users\AppData\Roaming\npm\func.ps1 cannot be loaded. The file C:\Users\AppData\Roaming\npm\func.ps1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. If you’re recieving the above error when trying to dubug an Azure Function (or similar) Read more…