skip to Main Content

Using appsettings.json configuration in EF Context – Asp.net

I should point out I'm new to .NET... I have the following appsettings.json file: { "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" } }, "ConnectionStrings": { "MyContext": "Host=localhost;Database=test;Username=user;Password=''" } } In the MyContext.cs file I want to…

VIEW QUESTION
Back To Top
Search