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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -