Model datasource binding at runtime ?

Thread is closed for posting
2 posts, 0 answers
  1. Benjamin
    Benjamin avatar
    2 posts
    Member since:
    Nov 2010

    Posted 01 Oct 2012 Link to this post

    Hello All,

    I am pretty new to OpenAccess ORM, and I would like to evaluate it, but right now I have a quick question:
    As I have an app that cannot use any standard config file (app or web.config), is is possible to instanciate model-first related objects by giving a database connexction string?

  2. Zoran
    Zoran avatar
    534 posts

    Posted 04 Oct 2012 Link to this post

    Hi Benjamin,

     It is absolutely not necessary to have a configuration file, in order to use OpenAccess during the runtime of your application. An OpenAccessContext, which is the object providing API for database CRUD operations is usually instantiated using the name of a connection string which is stored in the configuration file. This parameter though can be replaced by a full connection string when a configuration file is not available.

    the Telerik team
    Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
Back to Top