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 7871743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:59:53+00:00 2026-06-03T01:59:53+00:00

Doing something weird here. For sake of security, the project manager wants this ASP.Net

  • 0

Doing something weird here. For sake of security, the project manager wants this ASP.Net MVC web app to use separate databases for each client. I already know that I’m going to be using the overload for the DataContext class that accepts a connection string as an argument to “hotswap” to another DB. The problem I’m facing is I know I don’t want to write this logic in each and every action, to read in the first parameter of the URL (which in this case will be the client’s name) and choose their database to build the DataContext against.

So .. How can I grab this data and somehow rig it up to create the DataContext is the Controller’s Constructor using some value to connect to the right database?

I’m hoping this makes sense. More details — Web App will run for multiple clients, and each client will have their own DataBase with Vendors, Items, Settings, etc… I’m really not sure what data is relevant here. 😛 Please forgive me!

EDIT: Why the downvotes? If I’m approaching something the wrong way … can you give me a hint?

  • 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-03T01:59:55+00:00Added an answer on June 3, 2026 at 1:59 am

    Looks like I’m going to push back and explain this is a huge issue for scalability, and instead will use a Client column to differentiate different datasets.

    Thanks for all your input!

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

Sidebar

Related Questions

For some reason this function is doing something weird just in Firefox function fadeOUT_sect(id)
This is a very weird problem. I think I must be doing something wrong,
I am doing something like this in myproject.myapp.urls : from django.conf.urls.defaults import * urlpatterns
I'm probably doing something realy stupid but I cant get this to work: var
I must be doing something wrong here (because really, what are the chances of
Hi I am doing android development, and found something weird while using socket API.
Alright, I know HOW to do but It's doing something weird. I am trying
Here's a weird one -- something that works great in IE, but not in
Im doing something quite specific where I have a text input, I want to
I may be doing something wrong, but I haven't been able to find a

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.