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

Mapping rules in App.config issue.

1 Answer 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alexey
Top achievements
Rank 2
Alexey asked on 11 Nov 2008, 06:38 PM
Can we set mapping rules in separate file? I think it is not good style to hold them in app.config.

1 Answer, 1 is accepted

Sort by
0
Accepted
Jan Blessenohl
Telerik team
answered on 12 Nov 2008, 02:03 PM
Hi Alexey,

The Database.Get() call can get an xml node which is used instead of the app.config file. Just have it where you want and pass it to the call.

Our wizards uses the file that is specified in the project properties.

If you have the persistent classes in a class library, the app.config file is embedded into the assembly and not longer visible. In that case the style is OK. Only the executable config file might be without an OpenAccess node. But at the end we need only one reference entry there that points to the DAL assembly where you can keep all other settings internal.

Greetings,
Jan Blessenohl
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Alexey
Top achievements
Rank 2
Answers by
Jan Blessenohl
Telerik team
Share this question
or