Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Architecture help

Architecture help

Scheduled Pinned Locked Moved ASP.NET
databasequestionsql-servercomsysadmin
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ramkumar_S
    wrote on last edited by
    #1

    This is the New Development for our product. our requirement is, DAL -- can be Ms Acccess or sql server [later may be cloud(azue db)] How can i swich between this db based on web.config so please suggest best method , I can check in BLL , Is this a right method? Ramkumar ("When you build bridges you can keep crossing them. ") http://ramkumarishere.blogspot.com

    A F 2 Replies Last reply
    0
    • R Ramkumar_S

      This is the New Development for our product. our requirement is, DAL -- can be Ms Acccess or sql server [later may be cloud(azue db)] How can i swich between this db based on web.config so please suggest best method , I can check in BLL , Is this a right method? Ramkumar ("When you build bridges you can keep crossing them. ") http://ramkumarishere.blogspot.com

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      Having multiple connections in your configuration file is easy -

         A
         SERVER1
         True                    
       
       A
         SERVER1
         True                    
      

      You can make the choice of connections in the DAL or the BAL layer. I would think DAL is better because then the BAL is completely free from the decision of which database to connect to - which is the way it should be. A pattern called the Enterprise Library supports multiple types of databases via some patterns.

      1 Reply Last reply
      0
      • R Ramkumar_S

        This is the New Development for our product. our requirement is, DAL -- can be Ms Acccess or sql server [later may be cloud(azue db)] How can i swich between this db based on web.config so please suggest best method , I can check in BLL , Is this a right method? Ramkumar ("When you build bridges you can keep crossing them. ") http://ramkumarishere.blogspot.com

        F Offline
        F Offline
        farogh haider
        wrote on last edited by
        #3

        You can do it by using n-tier architecture with interface and abstract class.

        Farogh Haider Web developer

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups