EF迁移数据库,第一种方法?

编程入门 行业动态 更新时间:2024-10-24 10:22:45
本文介绍了EF迁移数据库,第一种方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们正在使用的数据库先用的EntityFramework的方法。 我们已经几个客户,当我们部署新的产品版本,我们现在采用DB模式的变化手动像工具SQL比较。

We're using Database first approach with EntityFramework. We've several customers, and when we deploy new product version, we're now applying DB schema changes "manually" with tools like SQL Compare.

有没有办法如何EF迁移有助于将更改应用到客户数据库自动?

Is there a way how EF Migrations could help to apply changes to customers DB automatically?

推荐答案

据我所知,EF迁移是针对CodeFirst产品,不支持数据库优先操作。

As far as I know, EF Migrations is a product targeted at CodeFirst and doesn't support Database First operations.

CodeFirst假定你将永远不会手动进行任何更改到数据库。所有对数据库的修改将通过代码先迁移。

CodeFirst assumes that you will never make any changes manually to the database. All the changes to the database will go through the code first migrations.

更多推荐

EF迁移数据库,第一种方法?

本文发布于:2023-05-29 23:11:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/355128.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:种方法   数据库   EF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!