将实体框架部署到生产环境中 [英] Deploy Entity Framework into Production Environment

查看:75
本文介绍了将实体框架部署到生产环境中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆