Connection Strings for Class Library Project
-
I have a solution that has 3 projects. One of them is serving as Class Library project (technically its a ASP.NET Web Application Project but it only contain classes). Where would be the best place to store all the connection strings? 1- GCL.config file? I could use ConfigurationManager class to access the connection strings or 2- Global.resource file? I could reference it directly GlobalResources.MyConnectionString.ToString(); Just trying to find out the best practice:) Thanks. Regards, Robert
-
I have a solution that has 3 projects. One of them is serving as Class Library project (technically its a ASP.NET Web Application Project but it only contain classes). Where would be the best place to store all the connection strings? 1- GCL.config file? I could use ConfigurationManager class to access the connection strings or 2- Global.resource file? I could reference it directly GlobalResources.MyConnectionString.ToString(); Just trying to find out the best practice:) Thanks. Regards, Robert