AddDbContext method for DI

by normal app, you mean ASP.NET app or not and ASP.NET app? @HaoK can answer better.