Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

problem with connection string configuration

$
0
0

hi,

I have the following appsettings.json on the web project:

{"ConnectionStrings": {"Model1": "data source=localhost;initial catalog=Mvc5IdentityExample;user id=user;password=password;MultipleActiveResultSets=True;App=EntityFramework"
  },"Logging": {"IncludeScopes": false,"LogLevel": {"Default": "Debug","System": "Information","Microsoft": "Information"
    }
  }
}

the connection string should be recovered by the EF 6 repository in my DAL project. 

The problem is that the DAL is looking for the connection string in web.config file and not in appsettings.json.

How can I configure  it to get it working?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>