.net core 3 Problem while registering ApplicationDbContext for dependency injection : <p>when i register other services it work like <code>services.AddSingleton&lt;GeneratingData, GeneratingData&gt;()</code> but when i add <code>services.AddSingleton&lt;ApplicationDbContext, ApplicationDbContext&gt;();</code> it does work
<a href="https://i.stack.imgur.com/dFCwe.png" rel="nofollow noreferrer">this error shows up</a></p>

<p><a href="https://i.stack.imgur.com/pgHaL.png" rel="nofollow noreferrer">enter image description here</a>
this is the code i write in startup file
<a href="https://i.stack.imgur.com/YfvrZ.png" rel="nofollow noreferrer">adding ApplicationDbContext for dependency injection</a></p>
