database name inside the lqml file

database name inside the lqml file

Postby anesthesi » Wed 13 Apr 2011 17:25

Hello, this is probably a newbie question, yet was unable to find an answer.
I build an lqml file with the entity framework for MySQL.
Yet, once I want to deploy my work to the production db, I find that the database name is written inside the lqml file for each table (and not only in the web.config).
Like, .
Why does it save the db name along with the table, and how do I deploy it to a different db?
An explanation would be appreciated.
Posts: 1
Joined: Tue 22 Feb 2011 16:06

Postby StanislavK » Thu 14 Apr 2011 14:50

The database name is included into the model to handle the case when objects from several databases are referred to in a single model. To use the same model for different databases with similar schemas, you can perform one of the following:
- manually remove the database name from the model (i.e., remove it from the Source entity property);
- modify the corresponding template so that no database name is included into the generated code. For more information about the latter option, please refer to the following topic:
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Return to LinqConnect (LINQ to SQL support)

Copyright © 1998 - 2017 Devart. All rights reserved.