c# - Connection string with ASP.Net -
i have solution 3 projects:
- a web application (wa)
- a data model layer (dml) using code first, ,
- 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
Post a Comment