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
Suggestion for Entity Developer
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
line with this one:
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.
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 = @"")]
Code: Select all
[Table(Name = @"")]