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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:29:24+00:00 2026-05-30T17:29:24+00:00

I have .NET enterprise application for work with two different versions. A SQL Compact

  • 0

I have .NET enterprise application for work with two different versions. A SQL Compact version so the program can be run without being on our network, and a SQL Server version which we use in the office and factory. The code is 99.99% the same they only differ between imports and declarations.

Right now I have just been keeping the Compact version up to date and creating a branch using VS then just using a set find and replace commands to create the Sever version. This seems like a very archaic solution but I but the idea of having the manually enter every change in both solutions seems more archaic.

I have a two set of classes(in two folders) that handle all the sql connections and commands. Would it be possible to make two branches that overlap in everything but these two folders?

  • 1 1 Answer
  • 1 View
  • 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-30T17:29:25+00:00Added an answer on May 30, 2026 at 5:29 pm

    It seems like Dependency Injection would be a useful pattern for your situation. Is it feasible to refactor the code so that you have an IDatabaseProvider, which you can then dynamically configure the app to use either your SQL Compact or SQL Server implementations?

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

Sidebar

Related Questions

I have joined a team developing an ASP.NET MVC version 1 application. I run
We have an enterprise application written in asp.net c# (3.5) and SQL server that
I have an internal enterprise application I've developed for my company built on .Net
I'm building UI logging into a long-existing ASP.NET enterprise application. I have my own
We have a .net based application hosted with SAP enterprise portal iframes. The domain
I have read in Patterns of Enterprise Application Architecture that a Unit Of Work
On large-scale Java/.Net Enterprise projects, does every developer need to have all the components/libraries/dependencies
In visual studio, I have an asp.net 3.5 project that is using MS Enterprise
I have an existing asp.net webforms project that uses Microsoft's Enterprise DAAB for the
I have a project that uses the Enterprise Library 4.1. When I target .net

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.