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. General Programming
  3. .NET (Core and Framework)
  4. load type using config file.

load type using config file.

Scheduled Pinned Locked Moved .NET (Core and Framework)
questiondatabasebusinesscollaborationxml
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.
  • S Offline
    S Offline
    Sendilkumar M
    wrote on last edited by
    #1

    I have some different requirements for my application. My application generates a well formatted XML which needs to be stored in database as string data or as file in some version controlled system. I am planning to create provider factory that will generate an object to interact either database or version control system. I like to control this thru my web.config file. How can I achieve this?

    M.Sendilkumar

    P H 2 Replies Last reply
    0
    • S Sendilkumar M

      I have some different requirements for my application. My application generates a well formatted XML which needs to be stored in database as string data or as file in some version controlled system. I am planning to create provider factory that will generate an object to interact either database or version control system. I like to control this thru my web.config file. How can I achieve this?

      M.Sendilkumar

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      One way to do this would be through a pattern called Dependency Injection. Microsoft have released an application block called the Unity Application Block[^] which you can use to this end.

      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

      My blog | My articles | MoXAML PowerToys

      1 Reply Last reply
      0
      • S Sendilkumar M

        I have some different requirements for my application. My application generates a well formatted XML which needs to be stored in database as string data or as file in some version controlled system. I am planning to create provider factory that will generate an object to interact either database or version control system. I like to control this thru my web.config file. How can I achieve this?

        M.Sendilkumar

        H Offline
        H Offline
        Henry Minute
        wrote on last edited by
        #3

        As Pete said, The Unity Application Block should help. Just to save your fingers this CP article[^] might help get a handle on it.

        Henry Minute If you open a can of worms, any viable solution *MUST* involve a larger can.

        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