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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:25:43+00:00 2026-05-26T04:25:43+00:00

I am trying to write a windows service application which deals with storing values

  • 0

I am trying to write a windows service application which deals with storing values of an application into back end database.My design should be in such a way that user can select the back end database into which the records are to be written.So I was looking for one such design pattern in .net if available,which deals with connecting into multiple databases according to the user choice.

  • 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-26T04:25:43+00:00Added an answer on May 26, 2026 at 4:25 am

    Use Repository Pattern

    public interface IDataStore
    {
      void AddData(SomeData data);
    }
    

    this interface can be implemented for each target database.
    You can pick the implementation based on user choice.
    This has nothing to do with .NET though.

    You can use Entity Framework to target multiple databases
    All you have to do is switch to the right ssdl file in the connection string based on user choice.

    See Multiple database support with Entity Framework

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

Sidebar

Related Questions

I'm trying to write a simple/small Windows Communication Foundation service application in Visual Basic
I'm trying to write a windows service. It installs fine, but fails when I
I'm trying to write a C++ windows service that can render to a texture.
I am trying to write a Windows Form and ASP.NET C# front-end and MSAccess
Hi I am trying to write a windows virtual com port driver which will
I'm trying to write a little helper for Windows which eventually will accept a
I'm trying to write a small Windows Service in .NET 3.5, that check every
I'm trying to write a simple website (ASP.NET v4), which will call Windows Search,
I'm trying to write the most basic application for windows phone 7 and want
I am trying to write a WCF Servce which will reside in a Windows

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.