load type using config file.
-
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
-
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
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
-
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
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.