实体框架版本6。代码第一模型 - 有什么方法使用一个数据库使用两个不同的应用程序生产和测试代码

发布于 2025-02-08 10:25:43 字数 340 浏览 4 评论 0原文

我被实体框架6版中的问题所困扰。代码第一型模型 - Windows应用程序中的生产系统。让我解释一下。

生产服务器运行应用程序.exe具有四个不同的类,含义四个不同的表具有同步生产应用程序,正常工作。

现在,我将添加一个与表格升级软件的表相同的模型,同一数据库现在就开始在此处开始。” 如果我使用实体框架更新数据库,那么我的生产系统将被关闭,因为数据库将被更改 进行了更改如何避免这种情况。

在数据库服务器上,更新一个表,实体框架结构已通过服务器 数据。

获取 更新EXE还可以与同一数据库一起使用。

请建议如何实现该目标。

I am stuck with issue in Entity Framework version 6. Code First Model - Production system in windows application . let me explain.

Production Server- running application .exe has four different class meaning four different table with sync production application, working fine.

Now I am going to add one more model same as table for upgrade software with same database now issue start here "if i update-database with entity framework then my production system will be down because database will be changed over database server, update one more table and entity framework structure has been changed over server. how to avoid this situation.

can't take database backup on local system for testing because my client is not allow me to take data.

what I want, my production exe should be work as it is
Update exe also work with same database.

please suggest how to achieve that target.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文