SQL Connection String appsettings.json
<p><strong>This is my connection string</strong></p>

<pre><code>{
  "Data": {
    "PhotoGalleryConnection": {
      "ConnectionString": "Server=WINDOWS-B7MJR5T\\SQLEXPRESS;User Id=sa;password=allah;Database=PhotoGallery;Trusted_Connection=True;MultipleActiveResultSets=true"
    }
  }
}
</code></pre>

<p><strong>And I am facing this exception</strong></p>

<blockquote>
  <p>An exception of type 'System.Data.SqlClient.SqlException' occurred in
  Microsoft.EntityFrameworkCore.dll but was not handled in user code
  Additional information: Cannot open database "PhotoGallery" requested
  by the login. The login failed.</p>
</blockquote>