Page 1 of 1

problems with connection string generation in app.config

Posted: Fri 11 Nov 2011 18:52
by nstraub
Hi!

whenever I generate the class files using the entityobject template, a connection string is added to my app.config called whatever I call it repeated as many times as I generate the model (so if I generate the model for the third time and my cs is called entities, I'll have 3 cs's in my config, called entities, entities.entities, and entities.entities.entities). I'm using version 4.1.64. could someone help me fix this?

Thanks!

Posted: Mon 14 Nov 2011 15:22
by Shalex
nstraub wrote:whenever I generate the class files using the entityobject template, a connection string is added to my app.config called whatever I call it repeated as many times as I generate the model
Both Entity Developer (the Devart Entity Model template, *.edml) and Entity Data Model Wizard (the ADO.NET Entity Data Model template, *.edmx) give an opportunity to set the name of connection string to store it in app.config on the step when you are specifying the connection string parameters. Please set the name of connection string manually.

If this doesn't help, specify the exact steps we should follow to reproduce the problem.

Posted: Mon 14 Nov 2011 15:54
by nstraub
steps:

- create a new dbfirst edml with connection name set to "entidades"
- build the edml twice.
- in app.config two entries will appear, one called "entidades" and the other one "entidades.entidades"

if done a third time a new cn will appear called "entidades.entidades.entidades".

if you need more info tell me.

Thanks!

Posted: Tue 15 Nov 2011 16:39
by Shalex
We cannot reproduce the problem at the moment.

1. Please upgrade to the latest (4.1.71) version of Entity Developer. Does the problem persist with 4.1.71 as well?
2. Tell us your edition of Entity Developer.
3.
nstraub wrote:- build the edml twice.
What do you mean saying "build"? Is it pressing the "Save" button of Visual Studio, when the model designer is active, or generating another model with the same name of connection string or what?