Mapping rules in App.config issue.

Thread is closed for posting
2 posts, 1 answers
  1. Alexey
    Alexey avatar
    79 posts
    Member since:
    Oct 2008

    Posted 11 Nov 2008 Link to this post

    Can we set mapping rules in separate file? I think it is not good style to hold them in app.config.
  2. Answer
    Jan Blessenohl
    Jan Blessenohl avatar
    707 posts

    Posted 12 Nov 2008 Link to this post

    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.

    Jan Blessenohl
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top