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

[Solved] Connection String

2 Answers 108 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.
ENTERPRISE INTERNATIONAL SAS
Top achievements
Rank 1
ENTERPRISE INTERNATIONAL SAS asked on 20 Jan 2011, 12:15 AM
Hi!


I have a solution that has its own projects. the main one is exe and the other ones are DLL Libraries. My main project has a connection string included into app.config, and my goal is to include a DLL project to EntityLibrary based on ORM schemas that have classes, properties, fields, etc. but when I do this ORM add a App.config into DLL EntityLibrary. I would like to use App.config from main project to use into DLL EntityLibrary. Is it possible this? How can I do this?


thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Alexander
Telerik team
answered on 20 Jan 2011, 05:53 PM
Hi Ramiro,

When you create a domain model OpenAccess indeed adds a configuration file to the project but you can just delete it and move the connection string to the app.config of the main project. At runtime the connection string defined in the executable assembly (the .exe file) is respected and used by OpenAccess. You should not have any problems to move the connection string as long as you do not change its name.
Hope that helps.

Best wishes,
Alexander
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
0
ENTERPRISE INTERNATIONAL SAS
Top achievements
Rank 1
answered on 21 Jan 2011, 11:38 PM
Thanks very much
Tags
General Discussions
Asked by
ENTERPRISE INTERNATIONAL SAS
Top achievements
Rank 1
Answers by
Alexander
Telerik team
ENTERPRISE INTERNATIONAL SAS
Top achievements
Rank 1
Share this question
or