title: Use Sql connection in a separate file in Azure Function
body: <p>I am using Azure function to connect to Sql database and retrieve values. I am able to install the necessary Nuget packages and perform Sql connection and querying in the Run() function</p>
  <p>I wish to keep this database access function alone in a separate file, and return value to the main function(Run() in this case). But when i create a new class in the Azure function project and write SQL connection code, no &quot;using&quot; statements can be used or installed packages can be used.</p>
  <p>I am new to Azure functions and may be i am wrong in this approach. Can you help me out? Thanks.</p>
  <p><a href="https://i.stack.imgur.com/qNeF9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qNeF9.png" alt="enter image description here" /></a>.</p>