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

  • Home
  • SEARCH
  • 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 7994393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:07:11+00:00 2026-06-04T14:07:11+00:00

I am building a SaaS application and I would like to retain the single

  • 0

I am building a SaaS application and I would like to retain the single code base I have. I would like to be in separate sub-domains cust1.saascompany.com, cust2.saascompany.com, etc.
However, I don’t have any TenantID’s and would prefer for multiple reasons to stay with separate databases for each customer (primary one is that it’s already coded that way and doesn’t make sense to change it until usage warrants). The database has the user login membership within it.

I’m guessing I would need separate web.configs for connection strings? Or should I create a separate database that stores all the connection strings and any application level variables/constants? Eventually, I would like to be able to automate this provisioning (again, when usage warrants it).

Are there some articles or posts that anyone can point me to regarding how to set this up with steps? I haven’t been able to find what I’m looking for.

  • 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-06-04T14:07:13+00:00Added an answer on June 4, 2026 at 2:07 pm

    Technically, this is simple. We do this for years. Although we use a different convention (my.domain.com/cust1, my.domain.com/cust2 plus url rewriting) this doesn’t change anything.

    So, this is what you do. You create an abstract specification of a connection string provider:

    public interface ICustomerInformationProvider
    {
        string GetConnectionString( string CustomerId );  
        ... // perhaps other information
    }
    

    then you provide any implementation you want like:

    public class WebConfigCustomerInformationProvider : ICustomerInformationProvider { ... }
    public class DatabaseConfigCustomerInformationProvider : ICustomerInformationProvider { ... }
    public class XmlConfigCustomerInformationProvider : ICustomerInformationProvider { ... }
    

    and you map your interface onto the implementation somehow (for example, using an IoC Container of your choice).

    This gives you the chance to configure the provider during the deployment, for example, a one provider can be used by developers (reads connection strings from a file) and another one in the production environment (reads connection strings from a database which can be easily provisioned).

    If you have other questions, feel free to ask.

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

Sidebar

Related Questions

Building a stand alone WPF application that uses a MSSQL backend. I would like
Building my first SL MVVM application (Silverlight4 RC) and have some issues i don't
Building a new ASP.net application, and planning to separate DB, 'service' tier and Web/UI
Building a rails B2B application that will have various users. I'm pretty clear on
I am currently building an application that I will host and will have multi-tenants
My team is currently building a new SaaS application for our company ( Amilia.com
I am building a SAAS web application and as soon as I include jQuery
We're building a Silverlight application which will be offered as SaaS. The end product
I'm building SaaS application where back end will be SQL Server and WCF Services.
We are a small team (4 guys) building an ERP SaaS application for Schools.

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.