This is a migrated thread and some comments may be shown as answers.

Openaccess App.config help

1 Answer 73 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joebet
Top achievements
Rank 1
Joebet asked on 29 Jul 2010, 04:58 AM
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....

1 Answer, 1 is accepted

Sort by
0
Accepted
Petko_I
Telerik team
answered on 03 Aug 2010, 02:06 PM
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,
Petko_I
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
Tags
Getting Started
Asked by
Joebet
Top achievements
Rank 1
Answers by
Petko_I
Telerik team
Share this question
or