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

Model datasource binding at runtime ?

1 Answer 29 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.
Benjamin
Top achievements
Rank 1
Benjamin asked on 01 Oct 2012, 07:49 PM
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?

Cheers,
Ben

1 Answer, 1 is accepted

Sort by
0
Zoran
Telerik team
answered on 04 Oct 2012, 03:17 PM
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.

Regards,
Zoran
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!
Tags
General Discussions
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Zoran
Telerik team
Share this question
or