I'm trying to use the Data Access Application block, and am having some issues with configuration. I am using it in a class library, and it seems that with v 3 you need to configure the DAAB first, making changes to the configuration file. However, in a class library, I do not seem to have the web.config or app.config file to change. So where do I need to store the configuration settings?
Thanks,
Paul
I think you dont need to care about the Configuration in Class Library ... that will be Handled by the Application in which your Class Library is used.
For now you can Sample Application with Proper Configuration and use your class Library in that to test.
|||
I am trying to put my data access code in the class library, though. How can I configure the DAAB to work WITHIN there? Or do I need to pull all data access code out of the class library and into the application?
The library I am developing will be used by several applications, so I would like to encapsulate the data aceess there...
Ideally, I would like to designate the database configuration I am using at run-time, by passing the connection string info in from the consuming applications...
|||Once after creating DAL then you can keep both Enterprise and DAL dlls can be placed in Web App or Windows app. And all the required configuration can be added in Web.Config and App.Config filesrespectively. We are doing same with Enterprise Library 3.1
No comments:
Post a Comment