将实体框架部署到生产环境中 [英] Deploy Entity Framework into Production Environment
问题描述
我正在使用Oracle的Entity Framework。当我想将系统部署到生产环境中时(oracle模式名称与开发环境不同,表名相同),我遇到问题,oracle模式名称写在configure
文件中。我正在使用db-first模式。
如何使模式配置适应不同的环境?
我可以轻松更改模式名称,例如更改一些配置文件?
是的,你可以在 app.config 或网页上找到它。配置
文件,您可以在应用程序启动时在运行时传递它。
希望它对您有所帮助。
I'm using Entity Framework with Oracle. When I want to deploy system into production environment(oracle schema name is different from development environment, tables names are the same), I meet a problem, the oracle schema name is written in the configure
file. I'm using db-first mode.
How to make the schema configuration adapt to different environments?
Can I just change the schema name easily, like change some configure files?
Yes, you can have the it in the app.config or web.config file and you would pass it at run-time when application starts.
Hope it helps you.
这篇关于将实体框架部署到生产环境中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!