$ 0 0 Here Mudassar Khan has explained with an example, how to set connection string inside the OnConfiguring method in DbContext class in ASP.Net Core.