Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 632951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:07:56+00:00 2026-05-13T20:07:56+00:00

Also, how do connection strings fit in? Presumably, it is ok for the dal

  • 0

Also, how do connection strings fit in?

Presumably, it is ok for the dal to read these values from the config, or should these be passed down from the top?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:07:56+00:00Added an answer on May 13, 2026 at 8:07 pm

    I tend to say yes to this.

    There are several reasons for encapsulating your custom configuration in a class and then injecting it, including:

    • Testability1 – your config can be mocked out easily. Any classes under test that require config, do not require you to play around with App.Configs just to get the tests working – your are nicely decoupled from Microsoft’s ConfigurationManager
    • Testability2 – the configuration itself becomes testable. If you are doing any “playing around” with values (e.g. turning a comma seperated list of values into an array) in your config class, you can test it’s behaviour simply and in isolation.
    • Swapability – you can easily swap out your config provider to be config in code, or config from a database because the actual configuration is encapsulated.

    So yes 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two connection strings (both in Web.Config: CS_Local and CS_Production) for my DBML
I want to use the connection string App.Config file. Also is it possible to
I keep hearing people complaining that C++ doesn't have garbage collection. I also hear
Also, how do LEFT OUTER JOIN , RIGHT OUTER JOIN , and FULL OUTER
Also, where would I find them?
See also How does a WCF server inform a WCF client about changes? (Better
Navision is also known as Microsoft Dynamics NAV.
We could also include IFrames as well.
EDIT: I also have access to ESXLT functions. I have two node sets of
This is also a question that I asked in a comment in one of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.