title: Config connection string in .net core 6
body: <p>I'm attempting to connect to my ASP.NET Core Web API application (.NET 6 in Visual Studio 2022 Preview) with SQL Server. And I tried to use the following code to configure the connection string in the <code>Startup</code> class as I used to.</p>
  <pre><code>services.AddDbContext&lt;DEMOWTSSPortalContext&gt;(options =&gt;
                  options.UseSqlServer(Configuration.GetConnectionString(&quot;DefaultConnection&quot;)));
  </code></pre>
  <p>But in .NET 6, I recognize that <code>Startup</code> and <code>Program</code> classes are merged into one class. And the above code is not usable in .NET 6. <code>AddDbContext</code> is not recognized. So do you have any idea or documentation about this update, and how to configure connection strings in .NET 6?</p>