c# - Connection string with ASP.Net -


i have solution 3 projects:

  1. a web application (wa)
  2. a data model layer (dml) using code first, ,
  3. a data access layer (dal)

the wa’s web.config , dml's app.config each have connection string section specifying connection string database.

i've noticed dml connection string doesn't matter. safe remove section app.config file?

also, why string unused? finally, i'm guessing when application run, connection database established using connection string in web.config file , database definition managed dml/dal?

is because other projects aren’t being run per se, methods , properties being referenced? thanks

yes, can remove connection string dml's app.config. unused because starting web application , it's config matter @ runtime.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -