0
I have an application in . Net Core MVC and I do the data access part using a Dll. How to configure a Connection String according to what was configured in my appSettings.Json of the Netcore MVC application?
private static string _ConnectionString;
private static string ConnectionString
{
get { return _ConnectionString; }
set
{
_ConnectionString =
"Data Source=SERVIDOR;Persist Security Info=True;User ID=ID; Password=Password; Initial Catalog=BASE";
}
}
Making _Connectionstring public and assigning value to startup?
– Leandro Angelo