Openaccess App.config help

Thread is closed for posting
2 posts, 1 answers
  1. Joebet
    Joebet avatar
    23 posts
    Member since:
    Jun 2010

    Posted 28 Jul 2010 Link to this post

    Good day i had an solution, a Base entity which contains all the mapping of my entities (no connectionstrings), DAL which was proposed by our team lead to not contain any app.config file but the layer is openaccess enabled. a Presentation layer that will consume the DAL which has an app.config that contains the connectionstrings that will be used by the whole application (the DAL will use this app.config for database manipulation and commiting of the its scope provider (Note: DAL musn't have an app.config))

    My DAL was referencing Base and  my presentation layer was referencing DAL. is there a way to do this? pls this is urgent.. thanks....
  2. Answer
    Petko_I avatar
    184 posts

    Posted 03 Aug 2010 Link to this post

    Hi Joebet,

    In order to work with our wizards there should be a configuration file present in the class library. If you have your model ready and you are confident that changes will not be introduced to it, you can delete the App.config file and load its XML content dynamically at runtime. Should you decide to make some changes to the domain model, you will need to introduce back the configuration file.

    I suggest you have a look at the following section in our updated online help:

    How to: Dynamically Manage a Connection to a Data Store

    I am providing you another sample solution (an upgraded version of the last I sent you) where I have moved the mapping information to the configuration file of the console application that uses the class library. Bear in mind that the wizards will not work for the example I am sending you as there is no application configuration file in the class library.

    I hope this information is what you are looking for. Do not hesitate to contact us if you have more questions.

    Sincerely yours,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top