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.
database name inside the lqml file
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
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:
http://www.devart.com/forums/viewtopic.php?t=17930
- 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:
http://www.devart.com/forums/viewtopic.php?t=17930