title: .NET Core 6 SQL Server connection without Entity Framework
body: <p>I am new to .NET Core. I have defined the connection string in <code>appsettings.json</code> like this:</p>
  <pre><code>&quot;ConnectionStrings&quot;: {
      &quot;TestBD&quot;: &quot;Server=localhost;Database=Test;Trusted_Connection=True;MultipleActiveResultSets=true&quot;
  }
  </code></pre>
  <p>I am not using Entity Framework. I need to connect to the database using this connection string from the <code>Program.cs</code> file.</p>
  <p>Any help is really appreciated. Thanks</p>