Page 1 of 1

Suggestion for Entity Developer

Posted: Sun 20 Jun 2010 12:00
by Zero-G.
Hey

In the past, I have had the problem, that I can't connect to a different database, when it was generated by Entity Developer. This problecm was solved for month.
Now it is possible to connect to different database names, when I manipulate the designer .vb file by hand. Some times the code is regenerated an then the "main" database name is named in the file again, so the program tries to run the "main" database and not the specified one in the connection string.
Would it be possible to get a switch, wich let me choose, if I want the designer .vb file branded with the db name or not!?

Please let me know. - THX

Posted: Mon 21 Jun 2010 14:11
by Shalex
Thank you for your suggestion. We will consider implementing this as a default behaviour. Here is a workaround.
You can make a simple change to the template in order to remove the database name prefix from the generated code.
Replace the

Code: Select all

[Table(Name = @"")]
line with this one:

Code: Select all

[Table(Name = @"")]
You will have to create a new template to implement this change. So copy the code from an existing C# or VB.NET LinqConnect template and make the mentioned corrections. Templates are available via the Tools->Entity Developer->Templates menu of Visual Studio.